]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: fix missing list remove when deleting mesh group
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Jul 2021 19:25:31 +0000 (22:25 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Jul 2021 19:25:31 +0000 (22:25 +0300)
This leads to a crash when you use "show run" after deleting the group.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
pimd/pim_msdp.c

index 2a8f0c121640f47837b2e2ad812709ef7689dd5b..da8916ddbf734100b86cd9a52ec5d204664a7718 100644 (file)
@@ -1217,6 +1217,7 @@ void pim_msdp_mg_free(struct pim_instance *pim, struct pim_msdp_mg **mgp)
        if ((*mgp)->mbr_list)
                list_delete(&(*mgp)->mbr_list);
 
+       SLIST_REMOVE(&pim->msdp.mglist, (*mgp), pim_msdp_mg, mg_entry);
        XFREE(MTYPE_PIM_MSDP_MG, (*mgp));
 }