From 28f66de2edcf23c327337b96433e3fc309a08018 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 12 Nov 2020 16:27:31 -0500 Subject: [PATCH] bgpd: fix SA warning Fix a coverity warning about an obscure path involving labels. Signed-off-by: Mark Stapp --- bgpd/bgp_route.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 9873057fa2..5e7bf3f626 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -3538,6 +3538,9 @@ int bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id, else has_valid_label = bgp_is_valid_label(label); + if (has_valid_label) + assert(label != NULL); + /* The flag BGP_NODE_FIB_INSTALL_PENDING is for the following * condition : * Suppress fib is enabled -- 2.39.5