svn commit: r276995 - stable/8/contrib/ntp/ntpd

Hajimu UMEMOTO ume at FreeBSD.org
Sun Jan 11 18:56:17 UTC 2015


Author: ume
Date: Sun Jan 11 18:56:16 2015
New Revision: 276995
URL: https://svnweb.freebsd.org/changeset/base/276995

Log:
  Correct comparison of IPv6 wildcard address.
  
  MFH:		r276814

Modified:
  stable/8/contrib/ntp/ntpd/ntp_io.c
Directory Properties:
  stable/8/contrib/ntp/   (props changed)

Modified: stable/8/contrib/ntp/ntpd/ntp_io.c
==============================================================================
--- stable/8/contrib/ntp/ntpd/ntp_io.c	Sun Jan 11 18:50:49 2015	(r276994)
+++ stable/8/contrib/ntp/ntpd/ntp_io.c	Sun Jan 11 18:56:16 2015	(r276995)
@@ -1093,7 +1093,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-all mailing list