diff options
author | Mobashshera Rasool <mrasool@vmware.com> | 2022-06-24 14:36:15 +0200 |
---|---|---|
committer | Mobashshera Rasool <mrasool@vmware.com> | 2022-06-24 14:36:15 +0200 |
commit | 3b2f2aa146661afdf4a7c081ba650a7ca2073ae4 (patch) | |
tree | 77953496e12dc2d2405069420fe29f5f75454625 /pimd | |
parent | Merge pull request #11462 from donaldsharp/random_stuff_right (diff) | |
download | frr-3b2f2aa146661afdf4a7c081ba650a7ca2073ae4.tar.xz frr-3b2f2aa146661afdf4a7c081ba650a7ca2073ae4.zip |
pimd: Clean up mroute_socket when pim terminates.
pim_mroute_socket_disable api is present but nowhere called.
This should be called when pim instance is terminated.
Fixed it.
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_instance.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index 8f117033e..938a10345 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -70,6 +70,8 @@ static void pim_instance_terminate(struct pim_instance *pim) pim_msdp_exit(pim); + pim_mroute_socket_disable(pim); + XFREE(MTYPE_PIM_PLIST_NAME, pim->spt.plist); XFREE(MTYPE_PIM_PLIST_NAME, pim->register_plist); |