Unregister event on pfkey socket during pfkey_reply(). Using events
authortobhe <tobhe@openbsd.org>
Wed, 24 Nov 2021 21:06:21 +0000 (21:06 +0000)
committertobhe <tobhe@openbsd.org>
Wed, 24 Nov 2021 21:06:21 +0000 (21:06 +0000)
commite7c3d382d3e55ac0efc3e25515132ad56ba7934f
treeb1a986787d7d3d7ad16677ebdda9f0edef6523d4
parent8f6f6c19344a4b71d2ac1a6ec276cf68884666fa
Unregister event on pfkey socket during pfkey_reply().  Using events
and poll() at the same time may lead to a race that locks up the
process in recv().

ok bluhm@
sbin/iked/iked.h
sbin/iked/pfkey.c