mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
pimd: Ensure that we properly shutdown threads on start failure
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
64c8653095
commit
862756ff85
@ -571,6 +571,10 @@ struct pim_ifchannel *pim_ifchannel_add(struct interface *ifp,
|
|||||||
if (ch->sources)
|
if (ch->sources)
|
||||||
list_delete(ch->sources);
|
list_delete(ch->sources);
|
||||||
|
|
||||||
|
THREAD_OFF(ch->t_ifjoin_expiry_timer);
|
||||||
|
THREAD_OFF(ch->t_ifjoin_prune_pending_timer);
|
||||||
|
THREAD_OFF(ch->t_ifassert_timer);
|
||||||
|
|
||||||
listnode_delete(pim_ifp->pim_ifchannel_list, ch);
|
listnode_delete(pim_ifp->pim_ifchannel_list, ch);
|
||||||
hash_release(pim_ifp->pim_ifchannel_hash, ch);
|
hash_release(pim_ifp->pim_ifchannel_hash, ch);
|
||||||
listnode_delete(pim_ifp->pim->ifchannel_list, ch);
|
listnode_delete(pim_ifp->pim->ifchannel_list, ch);
|
||||||
|
Loading…
Reference in New Issue
Block a user