summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2015-01-11 18:39:27 +0000
committerume <ume@FreeBSD.org>2015-01-11 18:39:27 +0000
commitaddcd434f9cfc53268eb0ba8220e61e410a48727 (patch)
tree418a3b44696e8c11d070a61b3fa8f6059c144fe7
parent50b3937987a75961824a4a1242bf8df76bcdb6a3 (diff)
downloadFreeBSD-src-addcd434f9cfc53268eb0ba8220e61e410a48727.zip
FreeBSD-src-addcd434f9cfc53268eb0ba8220e61e410a48727.tar.gz
Correct comparison of IPv6 wildcard address.
MFH: r276814
-rw-r--r--contrib/ntp/ntpd/ntp_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/ntpd/ntp_io.c b/contrib/ntp/ntpd/ntp_io.c
index 2d5572a..c53c686 100644
--- a/contrib/ntp/ntpd/ntp_io.c
+++ b/contrib/ntp/ntpd/ntp_io.c
@@ -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
OpenPOWER on IntegriCloud