No need to check RB_REMOVE() return value if kif is not NULL.
authorclaudio <claudio@openbsd.org>
Tue, 26 Jul 2022 17:12:40 +0000 (17:12 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 26 Jul 2022 17:12:40 +0000 (17:12 +0000)
commitc592ee3537cc62a56fb3dd55ab85d540cf65c645
tree0a97ce3c5e1b3da1b11035d67a6c1e9d316e36c5
parentc9123f7750ee8527469cf082552874e92eeebfe6
No need to check RB_REMOVE() return value if kif is not NULL.
Therefor check that in the IFAN_DEPARTURE case the interface was found
before calling kif_remove.
Idea and OK tb@
usr.sbin/bgpd/kroute.c