mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct comparison of IPv6 wildcard address.
MFC after: 3 days
This commit is contained in:
parent
9c20a2f180
commit
359f2b4604
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue