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 */
                        }
_______________________________________________
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