svn commit: r339676 - head/sys/netpfil/pf

Kristof Provost kp at FreeBSD.org
Wed Oct 24 00:19:45 UTC 2018


Author: kp
Date: Wed Oct 24 00:19:44 2018
New Revision: 339676
URL: https://svnweb.freebsd.org/changeset/base/339676

Log:
  pf: Fix copy/paste error in IPv6 address rewriting
  
  We checked the destination address, but replaced the source address. This was
  fixed in OpenBSD as part of their NAT rework, which we don't want to import
  right now.
  
  CID:		1009561
  MFC after:	3 weeks

Modified:
  head/sys/netpfil/pf/pf.c

Modified: head/sys/netpfil/pf/pf.c
==============================================================================
--- head/sys/netpfil/pf/pf.c	Wed Oct 24 00:17:19 2018	(r339675)
+++ head/sys/netpfil/pf/pf.c	Wed Oct 24 00:19:44 2018	(r339676)
@@ -3429,7 +3429,7 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm
 
 				if (PF_ANEQ(daddr,
 				    &nk->addr[pd->didx], AF_INET6))
-					PF_ACPY(saddr, &nk->addr[pd->didx], af);
+					PF_ACPY(daddr, &nk->addr[pd->didx], af);
 				break;
 #endif /* INET */
 			}


More information about the svn-src-head mailing list