From 0369cb827f42e507c4325821a3170df78af52765 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 20 Mar 2024 10:13:00 -0400 Subject: [PATCH] bgpd: Do not reap, schedule for deletion Do not reap instead let's schedule for deletion and let best_path_selection take care of the deletion as it should. Signed-off-by: Donald Sharp --- bgpd/bgp_evpn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 5f3f0f923c41..f82dc97aca77 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -2383,8 +2383,7 @@ static int delete_evpn_route(struct bgp *bgp, struct bgpevpn *vpn, */ delete_evpn_route_entry(bgp, afi, safi, dest, &pi); if (pi) { - dest = bgp_path_info_reap(dest, pi); - assert(dest); + bgp_path_info_delete(dest, pi); evpn_route_select_install(bgp, vpn, dest, pi); }