mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 20:40:06 +01:00
core: minor fix to ensure safe boolean comparison in have_ip6_address()
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
653b7e4805
commit
0555df65d3
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue