mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
pimd: Cleanup msdp shutdown
Shutdown pim msdp code a bit better. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
172e45dc30
commit
845d9af76a
@ -1176,8 +1176,7 @@ static void pim_msdp_peer_free(struct pim_msdp_peer *mp)
|
|||||||
* Let's make sure we are not running when we delete
|
* Let's make sure we are not running when we delete
|
||||||
* the underlying data structure
|
* the underlying data structure
|
||||||
*/
|
*/
|
||||||
pim_msdp_peer_cr_timer_setup(mp, false);
|
pim_msdp_peer_stop_tcp_conn(mp, false);
|
||||||
pim_msdp_peer_ka_timer_setup(mp, false);
|
|
||||||
|
|
||||||
if (mp->ibuf) {
|
if (mp->ibuf) {
|
||||||
stream_free(mp->ibuf);
|
stream_free(mp->ibuf);
|
||||||
@ -1190,6 +1189,8 @@ static void pim_msdp_peer_free(struct pim_msdp_peer *mp)
|
|||||||
if (mp->mesh_group_name) {
|
if (mp->mesh_group_name) {
|
||||||
XFREE(MTYPE_PIM_MSDP_MG_NAME, mp->mesh_group_name);
|
XFREE(MTYPE_PIM_MSDP_MG_NAME, mp->mesh_group_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mp->pim = NULL;
|
||||||
XFREE(MTYPE_PIM_MSDP_PEER, mp);
|
XFREE(MTYPE_PIM_MSDP_PEER, mp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user