Make sure pfkeyv2_parsemessage() only returns 0 if the message was
authortobhe <tobhe@openbsd.org>
Fri, 29 Sep 2023 18:45:42 +0000 (18:45 +0000)
committertobhe <tobhe@openbsd.org>
Fri, 29 Sep 2023 18:45:42 +0000 (18:45 +0000)
commit2f23249ef43c89a850e165246108676916eef4d5
treee878bc51e87e08fa1f9b86432a3aa2e10ab0807d
parent21f83cc096fdf28c762eaa7618f3321e5c8504bd
Make sure pfkeyv2_parsemessage() only returns 0 if the message was
successfully validated.  Decline all messages from userland that contain
errnos and remove unneeded special handling for type SADB_X_PROMISC.

ok bluhm@
sys/net/pfkeyv2_parsemessage.c