From 164527d750aaeda2c39ea39bc509eba34a102490 Mon Sep 17 00:00:00 2001 From: bluhm Date: Fri, 26 Nov 2021 19:24:41 +0000 Subject: [PATCH] Put a mutex assert locked into puttdb_locked(). OK tobhe@ --- sys/netinet/ip_ipsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); /* -- 2.20.1