bgpd: fix SA warning

Fix a coverity warning about an obscure path involving labels.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2020-11-12 16:27:31 -05:00
parent a6aa46cc1e
commit 28f66de2ed

View File

@ -3538,6 +3538,9 @@ int bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id,
else else
has_valid_label = bgp_is_valid_label(label); 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 /* The flag BGP_NODE_FIB_INSTALL_PENDING is for the following
* condition : * condition :
* Suppress fib is enabled * Suppress fib is enabled