summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-04-04 08:18:34 +0200
committerThomas Haller <thaller@redhat.com>2023-04-04 08:19:20 +0200
commitde8104c71c4bafb472f921cdbcca6e7750e6a1ef (patch)
tree93a99ae207245f511268d3f779a1f333c1e855f3
parent3127810158ace157313ad5695efc4a7ae346d3f2 (diff)
downloadNetworkManager-de8104c71c4bafb472f921cdbcca6e7750e6a1ef.tar.gz
device: fix assertion condition in _dev_ipdhcpx_start()
src/core/devices/nm-device.c: In function '_dev_ipdhcpx_start': src/core/devices/nm-device.c:10672:13: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] nm_assert(pd_hint_length > 0 || pd_hint_length <= 128); ^ src/core/devices/nm-device.c:10672:13: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] src/core/devices/nm-device.c:10672:13: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] Fixes: e2b9019ac0c2 ('dhcp: support prefix delegation hint')
-rw-r--r--src/core/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
index edcf160c4b..6117c6889a 100644
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -10669,7 +10669,7 @@ _dev_ipdhcpx_start(NMDevice *self, int addr_family)
&config.v6.pd_hint_addr,
&pd_hint_length);
nm_assert(res);
- nm_assert(pd_hint_length > 0 || pd_hint_length <= 128);
+ nm_assert(pd_hint_length > 0 && pd_hint_length <= 128);
config.v6.pd_hint_length = pd_hint_length;
}