Correct comparison of IPv6 wildcard address.
MFC after: 3 days
This commit is contained in:
parent
9c20a2f180
commit
359f2b4604
@ -1124,7 +1124,7 @@ is_wildcard_addr(struct sockaddr_storage *sas)
|
||||
#ifdef INCLUDE_IPV6_SUPPORT
|
||||
if (sas->ss_family == AF_INET6 &&
|
||||
memcmp(&((struct sockaddr_in6*)sas)->sin6_addr, &in6addr_any,
|
||||
sizeof(in6addr_any) == 0))
|
||||
sizeof(in6addr_any)) == 0)
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user