mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
Coverity fix: properly check for 0 ipv6 address.
This commit is contained in:
parent
2bc460d3c1
commit
29f15b43fa
@ -850,7 +850,7 @@ virSocketAddrGetIpPrefix(const virSocketAddr *address,
|
||||
}
|
||||
return -1;
|
||||
} else if (VIR_SOCKET_ADDR_IS_FAMILY(address, AF_INET6)) {
|
||||
if (address->data.inet6.sin6_addr.s6_addr == 0)
|
||||
if (virSocketAddrIsWildcard(address))
|
||||
return 0;
|
||||
return 64;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user