0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

RIP: actually remove the interface structures on shutdown

This avoids a spurious route update fail when protocol shutdown collides
with an incoming RIP packet.
This commit is contained in:
Maria Matejka 2023-10-13 11:23:21 +02:00
parent 21b75c472d
commit dabf2f5625

View 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;
}