svn commit: r344738 - stable/11/usr.sbin/syslogd
Hajimu UMEMOTO
ume at FreeBSD.org
Sun Mar 3 03:42:52 UTC 2019
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;
}
More information about the svn-src-stable
mailing list