diff options
author | Neale Ranns <nranns@cisco.com> | 2017-11-15 10:44:07 -0800 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2017-11-15 19:45:47 +0000 |
commit | 93149bb4cd0a137b2a6da4b0d9f8cb2032e44734 (patch) | |
tree | 5818b346974d496f784050220ffca9a86052df4f /src/vnet/bier/bier_api.c | |
parent | b8a0d2cf9ff8796123b3c167c051f78ab03cc4cf (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.c | 2 |
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] = |