Commit 0555df65 authored by Thomas Haller's avatar Thomas Haller

core: minor fix to ensure safe boolean comparison in have_ip6_address()

Signed-off-by: Thomas Haller's avatarThomas Haller <thaller@redhat.com>
parent 653b7e48
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment