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