Correct comparison of IPv6 wildcard address.

MFC after:	3 days
This commit is contained in:
Hajimu UMEMOTO 2015-01-08 07:47:39 +00:00
parent 9c20a2f180
commit 359f2b4604

View File

@ -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