Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 10:57:31 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r340562 - stable/12/sys/netpfil/pf
Message-ID:  <201811181057.wAIAvVvE012013@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811181057.wAIAvVvE012013>