summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-11-01 09:19:11 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-11-01 09:19:11 +0000
commitcc4e9a57208459adbff0af0581f0d0225e9e3d39 (patch)
treeef2e8373e868798080fb4748ad3c632267f03d70 /sys
parentd2862630712d5f08d1f45d00266258af0f8c2840 (diff)
In ipsec_common_input_cb() pass mbuf pointer to pf_test() so that
all callers get an update if the mbuf changes. OK tobhe@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ipsec_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index 9711e5213cb..6f575d4f279 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.189 2021/10/24 22:59:47 bluhm Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.190 2021/11/01 09:19:10 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -623,10 +623,11 @@ ipsec_common_input_cb(struct mbuf **mp, struct tdb *tdbp, int skip, int protoff)
if ((ifp = if_get(m->m_pkthdr.ph_ifidx)) == NULL) {
goto baddone;
}
- if (pf_test(af, PF_IN, ifp, &m) != PF_PASS) {
+ if (pf_test(af, PF_IN, ifp, mp) != PF_PASS) {
if_put(ifp);
goto baddone;
}
+ m = *mp;
if_put(ifp);
if (m == NULL)
return 0;