svn commit: r340563 - stable/11/sys/netpfil/pf
Kristof Provost
kp at FreeBSD.org
Sun Nov 18 10:57:43 UTC 2018
Author: kp
Date: Sun Nov 18 10:57:39 2018
New Revision: 340563
URL: https://svnweb.freebsd.org/changeset/base/340563
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/11/sys/netpfil/pf/pf.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netpfil/pf/pf.c
==============================================================================
--- stable/11/sys/netpfil/pf/pf.c Sun Nov 18 10:57:31 2018 (r340562)
+++ stable/11/sys/netpfil/pf/pf.c Sun Nov 18 10:57:39 2018 (r340563)
@@ -3417,7 +3417,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-stable
mailing list