From: Maria Matejka Date: Fri, 13 Oct 2023 09:23:21 +0000 (+0200) Subject: RIP: actually remove the interface structures on shutdown X-Git-Tag: v3.0.0~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dabf2f5625c73226d7efbe92924085f8ea9b2832;p=thirdparty%2Fbird.git RIP: actually remove the interface structures on shutdown This avoids a spurious route update fail when protocol shutdown collides with an incoming RIP packet. --- diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 00423802a..28beadb49 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -1243,8 +1243,8 @@ rip_shutdown(struct proto *P) TRACE(D_EVENTS, "Shutdown requested"); struct rip_iface *ifa; - WALK_LIST(ifa, p->iface_list) - rip_iface_stop(ifa); + WALK_LIST_FIRST(ifa, p->iface_list) + rip_remove_iface(p, ifa); return PS_DOWN; }