summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf/net
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-10-30 14:55:00 +0000
committerkevlo <kevlo@FreeBSD.org>2011-10-30 14:55:00 +0000
commit7120d23af8ac196e112a8cec4c558d7bf12e3889 (patch)
tree5ca4f0ed94e736a679662d307737040c2057cb5d /sys/contrib/pf/net
parent163d74afd8b5a1d2beb71623ec3021367ed4dcb7 (diff)
downloadFreeBSD-src-7120d23af8ac196e112a8cec4c558d7bf12e3889.zip
FreeBSD-src-7120d23af8ac196e112a8cec4c558d7bf12e3889.tar.gz
Add missing PF_UNLOCK in pf_test
Reviewed by: bz
Diffstat (limited to 'sys/contrib/pf/net')
-rw-r--r--sys/contrib/pf/net/pf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c
index 9b8ed26..f8fc086 100644
--- a/sys/contrib/pf/net/pf.c
+++ b/sys/contrib/pf/net/pf.c
@@ -7176,11 +7176,15 @@ pf_test6(int dir, struct ifnet *ifp, struct mbuf **m0,
}
#ifdef __FreeBSD__
- if (pd.pf_mtag->flags & PF_TAG_GENERATED)
+ if (pd.pf_mtag->flags & PF_TAG_GENERATED) {
+ PF_UNLOCK();
#else
if (m->m_pkthdr.pf.flags & PF_TAG_GENERATED)
#endif
return (PF_PASS);
+#ifdef __FreeBSD__
+ }
+#endif
/* We do IP header normalization and packet reassembly here */
if (pf_normalize_ip6(m0, dir, kif, &reason, &pd) != PF_PASS) {
OpenPOWER on IntegriCloud