]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
RIP: actually remove the interface structures on shutdown
authorMaria Matejka <mq@ucw.cz>
Fri, 13 Oct 2023 09:23:21 +0000 (11:23 +0200)
committerMaria Matejka <mq@ucw.cz>
Fri, 13 Oct 2023 09:23:29 +0000 (11:23 +0200)
This avoids a spurious route update fail when protocol shutdown collides
with an incoming RIP packet.

proto/rip/rip.c

index 00423802a30e421ed8dd7a197e511ed40b63818c..28beadb491bb622d184efab3af9cfe086895d81f 100644 (file)
@@ -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;
 }