Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Mar 2019 03:42:52 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r344738 - stable/11/usr.sbin/syslogd
Message-ID:  <201903030342.x233gqOZ033614@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Sun Mar  3 03:42:51 2019
New Revision: 344738
URL: https://svnweb.freebsd.org/changeset/base/344738

Log:
  MFC r344491: An IPv6 address matching should be fixed.
  Specifying an IPv6 address by the -a option was broken
  since r309933.

Modified:
  stable/11/usr.sbin/syslogd/syslogd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/syslogd/syslogd.c
==============================================================================
--- stable/11/usr.sbin/syslogd/syslogd.c	Sun Mar  3 03:40:11 2019	(r344737)
+++ stable/11/usr.sbin/syslogd/syslogd.c	Sun Mar  3 03:42:51 2019	(r344738)
@@ -3200,8 +3200,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?201903030342.x233gqOZ033614>