summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpd
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2015-01-08 07:47:39 +0000
committerume <ume@FreeBSD.org>2015-01-08 07:47:39 +0000
commit33e4c06b1179b23b50113f86fc111c9ed7871552 (patch)
treede3d0dbecc7b5eb166e6091dfec9ca4efabf5d5c /contrib/ntp/ntpd
parent37ae3a3ac47ea278bb4c42baf2fe5b19946f344f (diff)
downloadFreeBSD-src-33e4c06b1179b23b50113f86fc111c9ed7871552.zip
FreeBSD-src-33e4c06b1179b23b50113f86fc111c9ed7871552.tar.gz
Correct comparison of IPv6 wildcard address.
MFC after: 3 days
Diffstat (limited to 'contrib/ntp/ntpd')
-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