From dabf2f5625c73226d7efbe92924085f8ea9b2832 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Fri, 13 Oct 2023 11:23:21 +0200 Subject: [PATCH] RIP: actually remove the interface structures on shutdown This avoids a spurious route update fail when protocol shutdown collides with an incoming RIP packet. --- proto/rip/rip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2