Author: ume
Date: Sun Mar  3 03:40:11 2019
New Revision: 344737
URL: https://svnweb.freebsd.org/changeset/base/344737

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

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

Modified: stable/12/usr.sbin/syslogd/syslogd.c
==============================================================================
--- stable/12/usr.sbin/syslogd/syslogd.c        Sun Mar  3 03:36:33 2019        
(r344736)
+++ stable/12/usr.sbin/syslogd/syslogd.c        Sun Mar  3 03:40:11 2019        
(r344737)
@@ -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;
                                }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to