diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-19 17:09:57 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-11-19 17:12:00 +0100 |
commit | 0555df65d3b18a916e5694c684829c824e8271dd (patch) | |
tree | 327c979e65c010732dad516921645b4a3cac5c4d | |
parent | 653b7e4805a3c0204a9df0f7dbe26bc9cc03f094 (diff) | |
download | NetworkManager-0555df65d3b18a916e5694c684829c824e8271dd.tar.gz |
core: minor fix to ensure safe boolean comparison in have_ip6_address()
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index c86ece86ee..864a7d57bd 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -3642,6 +3642,8 @@ have_ip6_address (const NMIP6Config *ip6_config, gboolean linklocal) if (!ip6_config) return FALSE; + linklocal = !!linklocal; + for (i = 0; i < nm_ip6_config_get_num_addresses (ip6_config); i++) { const NMPlatformIP6Address *addr = nm_ip6_config_get_address (ip6_config, i); |