Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2018 00:19:44 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339676 - head/sys/netpfil/pf
Message-ID:  <201810240019.w9O0JiXg064137@repo.freebsd.org>

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



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