forked from Mirror/frr
bgpd: Fix call bgp_zebra_terminate_radv
The call into bgp_zebra_terminate_radv was setting the peer->ifp to NULL before calling into bgp_zebra_terminate_radv. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
parent
0d9e445ef4
commit
5575a6bb92
|
@ -183,11 +183,16 @@ bgp_update_interface_nbrs (struct bgp *bgp, struct interface *ifp,
|
|||
if (peer->conf_if &&
|
||||
(strcmp (peer->conf_if, ifp->name) == 0))
|
||||
{
|
||||
peer->ifp = upd_ifp;
|
||||
if (upd_ifp)
|
||||
{
|
||||
peer->ifp = upd_ifp;
|
||||
bgp_zebra_initiate_radv (bgp, peer);
|
||||
}
|
||||
else
|
||||
{
|
||||
bgp_zebra_terminate_radv (bgp, peer);
|
||||
peer->ifp = upd_ifp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue