From 860fbf0d657d8e0b34b6fb2ff72c90f4030ed7ef Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 25 Sep 2023 09:31:18 +0200 Subject: [PATCH] Babel: Remove interfaces on shutdown This avoids calling interface timer between Babel going PS_DOWN and finally cleaning up the resource pool. --- proto/babel/babel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proto/babel/babel.c b/proto/babel/babel.c index decaa407..27ec4784 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; }