mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 23:58:44 +00:00
bgpd: Ensure debug is printed before possible dest freed in install_evpn_route_entry_in_vrf
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
8c9e7835ae
commit
3abbc2340a
@ -3029,14 +3029,14 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
|||||||
/* Process for route leaking. */
|
/* Process for route leaking. */
|
||||||
vpn_leak_from_vrf_update(bgp_get_default(), bgp_vrf, pi);
|
vpn_leak_from_vrf_update(bgp_get_default(), bgp_vrf, pi);
|
||||||
|
|
||||||
bgp_dest_unlock_node(dest);
|
|
||||||
|
|
||||||
if (bgp_debug_zebra(NULL))
|
if (bgp_debug_zebra(NULL))
|
||||||
zlog_debug("... %s pi dest %p (l %d) pi %p (l %d, f 0x%x)",
|
zlog_debug("... %s pi dest %p (l %d) pi %p (l %d, f 0x%x)",
|
||||||
new_pi ? "new" : "update", dest,
|
new_pi ? "new" : "update", dest,
|
||||||
bgp_dest_get_lock_count(dest), pi, pi->lock,
|
bgp_dest_get_lock_count(dest), pi, pi->lock,
|
||||||
pi->flags);
|
pi->flags);
|
||||||
|
|
||||||
|
bgp_dest_unlock_node(dest);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user