summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@cvs.openbsd.org>2020-12-15 15:23:49 +0000
committerAlexandr Nedvedicky <sashan@cvs.openbsd.org>2020-12-15 15:23:49 +0000
commitd1640026ce6b2004dcbc6fb1010e9794b331c768 (patch)
tree9903293ff8e6b0fb3e5731066a1ea9211ea74065
parentf1eb2640906d7c4d6522cd9c9390419b67bc1854 (diff)
missing NET_LOCK()/NET_UNLOCK() in pf_osfp_flush()
OK mpi@
-rw-r--r--sys/net/pf_osfp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf_osfp.c b/sys/net/pf_osfp.c
index 87dee95e5d0..a7f60e2e3c2 100644
--- a/sys/net/pf_osfp.c
+++ b/sys/net/pf_osfp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_osfp.c,v 1.44 2020/10/21 16:15:32 kettenis Exp $ */
+/* $OpenBSD: pf_osfp.c,v 1.45 2020/12/15 15:23:48 sashan Exp $ */
/*
* Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org>
@@ -312,6 +312,7 @@ pf_osfp_flush(void)
struct pf_os_fingerprint *fp;
struct pf_osfp_entry *entry;
+ NET_LOCK();
PF_LOCK();
while ((fp = SLIST_FIRST(&pf_osfp_list))) {
SLIST_REMOVE_HEAD(&pf_osfp_list, fp_next);
@@ -322,6 +323,7 @@ pf_osfp_flush(void)
pool_put(&pf_osfp_pl, fp);
}
PF_UNLOCK();
+ NET_UNLOCK();
}