pimd: fix missing list remove when deleting mesh group

This leads to a crash when you use "show run" after deleting the group.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-07-28 22:25:31 +03:00
parent 53d7080980
commit 3e7ec159bd

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