summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-07-25 04:59:34 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-07-25 04:59:34 +0000
commit086cf27d637ec1ac7535261de8b19aed40c10fb5 (patch)
treeef1b6b89d61a1ca52f4db71a42074ae5094c1fe1
parent636ce48d405dbb5d05efaa32a88dbd9c02cdf3a8 (diff)
Make sure pkthdr.rcvif is correct before calling pf_test()
-rw-r--r--sys/net/if_bridge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 328cac741c6..b237a2cf1db 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.72 2001/07/25 03:43:41 jason Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.73 2001/07/25 04:59:33 jason Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -1989,7 +1989,8 @@ bridge_filter(sc, dir, ifp, eh, m)
}
/* Finally, we get to filter the packet! */
- if (pf_test(dir, m->m_pkthdr.rcvif, &m) != PF_PASS)
+ m->m_pkthdr.rcvif = ifp;
+ if (pf_test(dir, ifp, &m) != PF_PASS)
goto dropit;
/* Rebuild the IP header */