Replace TDBF_DELETED flag with check if tdb was already unlinked.
authortobhe <tobhe@openbsd.org>
Fri, 26 Nov 2021 16:16:35 +0000 (16:16 +0000)
committertobhe <tobhe@openbsd.org>
Fri, 26 Nov 2021 16:16:35 +0000 (16:16 +0000)
commitacf1bec55e9ad79e5385eab3e58702adcd02a571
treea441bf6407ce5cb369d5fe3d7340bcbe47d72cae
parentb9702ae564c275436aaa1cdf9d4bf7af9b92a43c
Replace TDBF_DELETED flag with check if tdb was already unlinked.
Protect tdb_unlink() and puttdb() for SADB_UPDATE with tdb_sadb_mutex.

Tested by Hrvoje Popovski
ok bluhm@ mvs@
sys/net/pfkeyv2.c
sys/netinet/ip_ipsp.c
sys/netinet/ip_ipsp.h