diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-07-28 21:25:31 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-07-28 21:25:31 +0200 |
commit | 3e7ec159bdcf6a07b8c14541280fa50bab326c80 (patch) | |
tree | fa6bab9ec23cedc8a198c61630692fcf44bdedcf /pimd | |
parent | Merge pull request #9166 from idryzhov/vtysh-enable (diff) | |
download | frr-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.c | 1 |
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)); } |