svn commit: r276814 - head/contrib/ntp/ntpd

Hajimu UMEMOTO ume at FreeBSD.org
Thu Jan 8 07:47:40 UTC 2015


Author: ume
Date: Thu Jan  8 07:47:39 2015
New Revision: 276814
URL: https://svnweb.freebsd.org/changeset/base/276814

Log:
  Correct comparison of IPv6 wildcard address.
  
  MFC after:	3 days

Modified:
  head/contrib/ntp/ntpd/ntp_io.c

Modified: head/contrib/ntp/ntpd/ntp_io.c
==============================================================================
--- head/contrib/ntp/ntpd/ntp_io.c	Thu Jan  8 06:32:56 2015	(r276813)
+++ head/contrib/ntp/ntpd/ntp_io.c	Thu Jan  8 07:47:39 2015	(r276814)
@@ -1124,7 +1124,7 @@ is_wildcard_addr(struct sockaddr_storage
 #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
 


More information about the svn-src-head mailing list