mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
virSocketAddrIsWildcard: Use IN6_IS_ADDR_UNSPECIFIED correctly
The IN6_IS_ADDR_UNSPECIFIED macro expects pointer to sin6_addr element instead of s6_addr element.
This commit is contained in:
parent
78cbff0ff2
commit
7793d2a83e
@ -241,7 +241,7 @@ virSocketAddrIsWildcard(const virSocketAddrPtr addr)
|
||||
return memcmp(&addr->data.inet4.sin_addr.s_addr, &tmp,
|
||||
sizeof(addr->data.inet4.sin_addr.s_addr)) == 0;
|
||||
case AF_INET6:
|
||||
return IN6_IS_ADDR_UNSPECIFIED(&addr->data.inet6.sin6_addr.s6_addr);
|
||||
return IN6_IS_ADDR_UNSPECIFIED(&addr->data.inet6.sin6_addr);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user