summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-01-28 14:00:07 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-01-28 14:00:07 +0000
commit083e4935162f97e8fd66dde47e6e55a1f73eb854 (patch)
treee97edcdfe6a0c084bc0ebe6f6e76b652a5e268d4 /sys/net
parentda53e06b414f54e9ef76149727724013a7ed9540 (diff)
try to lookup the icmp state based on a correct packet descriptor;
ok bluhm, henning
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index f75b6d09b4d..b138a8db3d9 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.798 2012/01/26 20:16:06 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.799 2012/01/28 14:00:06 mikeb Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5254,9 +5254,9 @@ pf_test_state_icmp(struct pf_pdesc *pd, struct pf_state **state,
virtual_id, virtual_type, icmp_dir, &iidx,
PF_ICMP_MULTI_NONE, 1);
if (ret >= 0) {
- if (ret == PF_DROP && pd->af == AF_INET6 &&
+ if (ret == PF_DROP && pd2.af == AF_INET6 &&
icmp_dir == PF_OUT) {
- ret = pf_icmp_state_lookup(pd, &key,
+ ret = pf_icmp_state_lookup(&pd2, &key,
state, virtual_id, virtual_type,
icmp_dir, &iidx, multi, 1);
if (ret >= 0)