mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:01:42 +00:00
bgpd: bgp_evpn_mh_route_delete should ensure dest is still usable
Again coverity believes that dest may be freed but it should not be because of how locking is done. Make coverity happy. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
8d39c8c927
commit
dade8dfdd6
@ -513,8 +513,11 @@ static int bgp_evpn_mh_route_delete(struct bgp *bgp, struct bgp_evpn_es *es,
|
||||
*/
|
||||
delete_evpn_route_entry(bgp, afi, safi, dest, &pi);
|
||||
if (pi)
|
||||
bgp_path_info_reap(dest, pi);
|
||||
dest = bgp_path_info_reap(dest, pi);
|
||||
|
||||
assert(dest);
|
||||
bgp_dest_unlock_node(dest);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user