summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-09-10 15:43:33 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-09-11 18:45:59 +0200
commitfce574212256d32ffaef386c54c8568518201f7d (patch)
treea1413747ad158bae62bda9822548ee6abaefbf12 /bgpd
parentbgpd: bgp_static_delete ensure rm and dest exist (diff)
downloadfrr-fce574212256d32ffaef386c54c8568518201f7d.tar.xz
frr-fce574212256d32ffaef386c54c8568518201f7d.zip
bgpd: bgp_cleanup_table ensure dest is still usable.
Make coverity happy Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 80498bc0d..b84abf262 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);
}
}