From: Maria Matejka Date: Mon, 25 Sep 2023 07:31:18 +0000 (+0200) Subject: Babel: Remove interfaces on shutdown X-Git-Tag: v3.0.0~405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=860fbf0d657d8e0b34b6fb2ff72c90f4030ed7ef;p=thirdparty%2Fbird.git Babel: Remove interfaces on shutdown This avoids calling interface timer between Babel going PS_DOWN and finally cleaning up the resource pool. --- diff --git a/proto/babel/babel.c b/proto/babel/babel.c index decaa407f..27ec47847 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -2550,8 +2550,11 @@ babel_shutdown(struct proto *P) TRACE(D_EVENTS, "Shutdown requested"); - WALK_LIST(ifa, p->interfaces) + WALK_LIST_FIRST(ifa, p->interfaces) + { babel_iface_shutdown(ifa); + babel_remove_iface(p, ifa); + } return PS_DOWN; }