From 7120d23af8ac196e112a8cec4c558d7bf12e3889 Mon Sep 17 00:00:00 2001 From: kevlo Date: Sun, 30 Oct 2011 14:55:00 +0000 Subject: Add missing PF_UNLOCK in pf_test Reviewed by: bz --- sys/contrib/pf/net/pf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/contrib/pf/net') 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) { -- cgit v1.1