No need to check as->established before calling pfkey_remove().
authorclaudio <claudio@openbsd.org>
Wed, 2 Oct 2024 09:45:29 +0000 (09:45 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 2 Oct 2024 09:45:29 +0000 (09:45 +0000)
commit69319e3ad6964d43849522e06d3fe5455c3ab3ad
treeb550d0b16b03e6063b528b5452389185ea1711ff
parenta02f709497189b35f54ba750d12e1d18821720bf
No need to check as->established before calling pfkey_remove().

Remove the extra checks in the caller and simplify some code because of that.
OK tb@
usr.sbin/bgpd/pfkey.c