summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-28 21:25:31 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-28 21:25:31 +0200
commit3e7ec159bdcf6a07b8c14541280fa50bab326c80 (patch)
treefa6bab9ec23cedc8a198c61630692fcf44bdedcf /pimd
parentMerge pull request #9166 from idryzhov/vtysh-enable (diff)
downloadfrr-3e7ec159bdcf6a07b8c14541280fa50bab326c80.tar.xz
frr-3e7ec159bdcf6a07b8c14541280fa50bab326c80.zip
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>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_msdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c
index 2a8f0c121..da8916ddb 100644
--- a/pimd/pim_msdp.c
+++ b/pimd/pim_msdp.c
@@ -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));
}