mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
pimd: Fix zclient cleanup on shutdown
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
a2f9eb822f
commit
da13682c88
@ -115,6 +115,7 @@ static void zclient_lookup_failed(struct zclient *zlookup)
|
|||||||
void
|
void
|
||||||
zclient_lookup_free (void)
|
zclient_lookup_free (void)
|
||||||
{
|
{
|
||||||
|
zclient_stop (zlookup);
|
||||||
zclient_free (zlookup);
|
zclient_free (zlookup);
|
||||||
zlookup = NULL;
|
zlookup = NULL;
|
||||||
}
|
}
|
||||||
|
@ -313,6 +313,8 @@ void pim_init()
|
|||||||
|
|
||||||
void pim_terminate()
|
void pim_terminate()
|
||||||
{
|
{
|
||||||
|
struct zclient *zclient;
|
||||||
|
|
||||||
pim_free();
|
pim_free();
|
||||||
|
|
||||||
/* reverse prefix_list_init */
|
/* reverse prefix_list_init */
|
||||||
@ -321,4 +323,11 @@ void pim_terminate()
|
|||||||
prefix_list_reset ();
|
prefix_list_reset ();
|
||||||
|
|
||||||
pim_vrf_terminate ();
|
pim_vrf_terminate ();
|
||||||
|
|
||||||
|
zclient = pim_zebra_zclient_get ();
|
||||||
|
if (zclient)
|
||||||
|
{
|
||||||
|
zclient_stop (zclient);
|
||||||
|
zclient_free (zclient);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user