diff options
author | Neale Ranns <nranns@cisco.com> | 2017-12-19 01:34:30 -0800 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2017-12-19 18:43:59 +0000 |
commit | be302d72031a7620fd1e79a620a99e8822bbac28 (patch) | |
tree | 914838d7bf9d4d476eaf10201fba711982bf1fd8 /src/vnet/bier/bier_api.c | |
parent | 4bc2d7ab3990aa8c819cd8134d029aa0d5e5b0d7 (diff) |
BIER coverity fix in route downlaod
Change-Id: I9341f1554d804dfeeecef656e59e8598704863dc
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c index 7d541c49182..92712580f14 100644 --- a/src/vnet/bier/bier_api.c +++ b/src/vnet/bier/bier_api.c @@ -162,10 +162,10 @@ vl_api_bier_route_add_del_t_handler (vl_api_bier_route_add_del_t * mp) vnm = vnet_get_main (); vnm->api_errno = 0; - bp = ntohs(mp->br_bp); + bp = ntohl(mp->br_bp); brpaths = NULL; - if (0 == bp || bp > 0xffff) + if (0 == bp || bp > BIER_BP_MAX) { rv = -1; goto done; |