summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-06-01 12:38:26 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-06-01 12:38:26 +0000
commit5e749c0d3a4c2cd653e3dac53ceb33b60feeb67b (patch)
treeb0f57f6dc0b666d46aa350065c6f6e9019ad0002 /sys
parent680f59a0a039eed2f0ff860a9e08e77c8ffe03f2 (diff)
While sending the pf syncookie, we are holding the pf lock. So
goto unlock when leaving this block. OK sashan@ henning@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 6f174d89505..8d791b8c7e6 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.1065 2018/05/10 08:52:01 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.1066 2018/06/01 12:38:25 bluhm Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -6928,7 +6928,7 @@ pf_test(sa_family_t af, int fwdir, struct ifnet *ifp, struct mbuf **m0)
pf_synflood_check(&pd)) {
pf_syncookie_send(&pd);
action = PF_DROP;
- goto done;
+ goto unlock;
}
if ((pd.hdr.tcp.th_flags & TH_ACK) && pd.p_len == 0)
pqid = 1;