Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2015 07:47:40 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r276814 - head/contrib/ntp/ntpd
Message-ID:  <201501080747.t087le51014620@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501080747.t087le51014620>