From 5e749c0d3a4c2cd653e3dac53ceb33b60feeb67b Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Fri, 1 Jun 2018 12:38:26 +0000 Subject: While sending the pf syncookie, we are holding the pf lock. So goto unlock when leaving this block. OK sashan@ henning@ --- sys/net/pf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3