From fce574212256d32ffaef386c54c8568518201f7d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 10 Sep 2023 09:43:33 -0400 Subject: [PATCH] bgpd: bgp_cleanup_table ensure dest is still usable. Make coverity happy Signed-off-by: Donald Sharp --- bgpd/bgp_route.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 80498bc0d7..b84abf262e 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6007,7 +6007,8 @@ static void bgp_cleanup_table(struct bgp *bgp, struct bgp_table *table, bgp_zebra_withdraw(p, pi, bgp, safi); } - bgp_path_info_reap(dest, pi); + dest = bgp_path_info_reap(dest, pi); + assert(dest); } } -- 2.39.5