mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 05:18:47 +00:00
pimd: Fix connected data structure not being freed
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
b616d3a9c7
commit
6233f08738
@ -338,9 +338,8 @@ static int pim_zebra_if_address_del(int command, struct zclient *client,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
p = c->address;
|
p = c->address;
|
||||||
if (p->family != AF_INET)
|
if (p->family == AF_INET)
|
||||||
return 0;
|
{
|
||||||
|
|
||||||
if (PIM_DEBUG_ZEBRA) {
|
if (PIM_DEBUG_ZEBRA) {
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
prefix2str(p, buf, BUFSIZ);
|
prefix2str(p, buf, BUFSIZ);
|
||||||
@ -357,7 +356,9 @@ static int pim_zebra_if_address_del(int command, struct zclient *client,
|
|||||||
pim_if_addr_del(c, 0);
|
pim_if_addr_del(c, 0);
|
||||||
pim_rp_setup();
|
pim_rp_setup();
|
||||||
pim_i_am_rp_re_evaluate();
|
pim_i_am_rp_re_evaluate();
|
||||||
|
}
|
||||||
|
|
||||||
|
connected_free (c);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user