summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-11-26 19:24:42 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-11-26 19:24:42 +0000
commitf42f9de1c5416d9d613c7a7fa39999bf89dd515b (patch)
tree936777f77f5e8bc33f4a3531992c87516035dd99 /sys
parentf1a00aa603c605e1e94646e1511bbc7a58d87d37 (diff)
Put a mutex assert locked into puttdb_locked().
OK tobhe@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index bd84e9f742b..04346c3bcb0 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.255 2021/11/26 16:16:35 tobhe Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.256 2021/11/26 19:24:41 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
@@ -804,6 +804,8 @@ puttdb_locked(struct tdb *tdbp)
{
u_int32_t hashval;
+ MUTEX_ASSERT_LOCKED(&tdb_sadb_mtx);
+
hashval = tdb_hash(tdbp->tdb_spi, &tdbp->tdb_dst, tdbp->tdb_sproto);
/*