From: bluhm Date: Fri, 26 Nov 2021 19:24:41 +0000 (+0000) Subject: Put a mutex assert locked into puttdb_locked(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=164527d750aaeda2c39ea39bc509eba34a102490;p=openbsd Put a mutex assert locked into puttdb_locked(). OK tobhe@ --- 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); /*