Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2019 03:41:05 +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: r344491 - head/usr.sbin/syslogd
Message-ID:  <201902240341.x1O3f5qU087523@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Sun Feb 24 03:41:05 2019
New Revision: 344491
URL: https://svnweb.freebsd.org/changeset/base/344491

Log:
  An IPv6 address matching should be fixed.  Specifying an IPv6
  address by the -a option was broken since r309933.
  
  Reported by:	"O. Hartmann" <ohartmann [...] walstatt.org>
  MFC after:	1 week

Modified:
  head/usr.sbin/syslogd/syslogd.c

Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c	Sun Feb 24 01:56:35 2019	(r344490)
+++ head/usr.sbin/syslogd/syslogd.c	Sun Feb 24 03:41:05 2019	(r344491)
@@ -3202,8 +3202,8 @@ validate(struct sockaddr *sa, const char *hname)
 					dprintf("rejected in rule %d due to scope mismatch.\n", i);
 					continue;
 				}
-				if (IN6_ARE_MASKED_ADDR_EQUAL(&sin6->sin6_addr,
-				    &a6p->sin6_addr, &m6p->sin6_addr) != 0) {
+				if (!IN6_ARE_MASKED_ADDR_EQUAL(&sin6->sin6_addr,
+				    &a6p->sin6_addr, &m6p->sin6_addr)) {
 					dprintf("rejected in rule %d due to IP mismatch.\n", i);
 					continue;
 				}



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