svn commit: r340562 - stable/12/sys/netpfil/pf

Kristof Provost kp at FreeBSD.org
Sun Nov 18 10:57:32 UTC 2018


Author: kp
Date: Sun Nov 18 10:57:31 2018
New Revision: 340562
URL: https://svnweb.freebsd.org/changeset/base/340562

Log:
  MFC r339676:
  
  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

Modified:
  stable/12/sys/netpfil/pf/pf.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/pf/pf.c
==============================================================================
--- stable/12/sys/netpfil/pf/pf.c	Sun Nov 18 10:54:47 2018	(r340561)
+++ stable/12/sys/netpfil/pf/pf.c	Sun Nov 18 10:57:31 2018	(r340562)
@@ -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-all mailing list