summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_api.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_api.c
parentb8a0d2cf9ff8796123b3c167c051f78ab03cc4cf (diff)
BIER: coverity fixes
Change-Id: I657bade082f9f754b294cd5f23ecfad4f0f46265 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/bier/bier_api.c')
-rw-r--r--src/vnet/bier/bier_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c
index aacee0910bf..cd1f40b1eaa 100644
--- a/src/vnet/bier/bier_api.c
+++ b/src/vnet/bier/bier_api.c
@@ -178,7 +178,7 @@ vl_api_bier_route_add_del_t_handler (vl_api_bier_route_add_del_t * mp)
brpath->frp_flags = FIB_ROUTE_PATH_BIER_FMASK;
vec_validate(brpath->frp_label_stack,
- mp->br_paths[ii].n_labels);
+ mp->br_paths[ii].n_labels - 1);
for (jj = 0; jj < mp->br_paths[ii].n_labels; jj++)
{
brpath->frp_label_stack[jj] =