summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkp <kp@FreeBSD.org>2016-05-23 13:59:48 +0000
committerkp <kp@FreeBSD.org>2016-05-23 13:59:48 +0000
commit7ddccc27cd3b8cf9bef3dd5b7b71c8b82e914386 (patch)
tree4603b1644542ae9dde7d1eba6fee00770657d7b9
parente6ee9b2fa8c3d9d15c0e3a70b61da40dd2eb15f7 (diff)
downloadFreeBSD-src-7ddccc27cd3b8cf9bef3dd5b7b71c8b82e914386.zip
FreeBSD-src-7ddccc27cd3b8cf9bef3dd5b7b71c8b82e914386.tar.gz
pf: Fix more ICMP mistranslation
In the default case fix the substitution of the destination address. PR: 201519 Submitted by: Max <maximos@als.nnov.ru> MFC after: 1 week
-rw-r--r--sys/netpfil/pf/pf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 845d39c..a35f9e4 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -5014,7 +5014,7 @@ pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif,
if (PF_ANEQ(pd2.dst,
&nk->addr[pd2.didx], pd2.af))
- pf_change_icmp(pd2.src, NULL, saddr,
+ pf_change_icmp(pd2.dst, NULL, saddr,
&nk->addr[pd2.didx], 0, NULL,
pd2.ip_sum, icmpsum,
pd->ip_sum, 0, pd2.af);
OpenPOWER on IntegriCloud