artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
371a004
)
Put a mutex assert locked into puttdb_locked().
author
bluhm
<bluhm@openbsd.org>
Fri, 26 Nov 2021 19:24:41 +0000
(19:24 +0000)
committer
bluhm
<bluhm@openbsd.org>
Fri, 26 Nov 2021 19:24:41 +0000
(19:24 +0000)
OK tobhe@
sys/netinet/ip_ipsp.c
patch
|
blob
|
history
diff --git
a/sys/netinet/ip_ipsp.c
b/sys/netinet/ip_ipsp.c
index
bd84e9f
..
04346c3
100644
(file)
--- a/
sys/netinet/ip_ipsp.c
+++ b/
sys/netinet/ip_ipsp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ip_ipsp.c,v 1.25
5 2021/11/26 16:16:35 tobhe
Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.25
6 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);
/*