summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_update.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-11-15 10:44:07 -0800
committerChris Luke <chris_luke@comcast.com>2017-11-15 19:45:47 +0000
commit93149bb4cd0a137b2a6da4b0d9f8cb2032e44734 (patch)
tree5818b346974d496f784050220ffca9a86052df4f /src/vnet/bier/bier_update.c
parentb8a0d2cf9ff8796123b3c167c051f78ab03cc4cf (diff)
BIER: coverity fixes
Change-Id: I657bade082f9f754b294cd5f23ecfad4f0f46265 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/bier/bier_update.c')
-rw-r--r--src/vnet/bier/bier_update.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/bier/bier_update.c b/src/vnet/bier/bier_update.c
index ddbdd72f8ee..170893d45b6 100644
--- a/src/vnet/bier/bier_update.c
+++ b/src/vnet/bier/bier_update.c
@@ -76,7 +76,7 @@ vnet_bier_route_cmd (vlib_main_t * vm,
vlib_cli_command_t * cmd)
{
clib_error_t * error = NULL;
- fib_route_path_t brp = {
+ fib_route_path_t *brps = NULL, brp = {
.frp_flags = FIB_ROUTE_PATH_BIER_FMASK,
};
bier_table_id_t bti = {
@@ -104,6 +104,7 @@ vnet_bier_route_cmd (vlib_main_t * vm,
}
}
+ vec_add1(brps, brp);
bti.bti_hdr_len = bier_hdr_bit_len_to_id(hdr_len);
// FIXME
bti.bti_type = BIER_TABLE_MPLS_SPF;
@@ -118,6 +119,7 @@ vnet_bier_route_cmd (vlib_main_t * vm,
}
done:
+ vec_free(brps);
return (error);
}
@@ -138,6 +140,7 @@ show_bier_fib_command_fn (vlib_main_t * vm,
bp = BIER_BP_INVALID;
bti = bei = INDEX_INVALID;
+ flags = BIER_SHOW_BRIEF;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) {
if (unformat (input, "%d %d", &bti, &bp))