diff options
author | Dave Barach <dave@barachs.net> | 2020-02-28 09:27:07 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-02-28 15:33:40 +0000 |
commit | bdfdc4a480260a874de9b828723b01f119b57fbe (patch) | |
tree | 79ff8edf1698c5096a24747d65827a059e7529d3 /src/plugins/vrrp/vrrp_api.c | |
parent | fe7b8c2b4aeadaa5cf3f55b0fcc04600c91df427 (diff) |
vrrp: fix api-related coverity warnings
Type: fix
Ticket: VPP-1837
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I13c0e4771defaebccc976a6f6703493de29434dd
Diffstat (limited to 'src/plugins/vrrp/vrrp_api.c')
-rw-r--r-- | src/plugins/vrrp/vrrp_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/vrrp/vrrp_api.c b/src/plugins/vrrp/vrrp_api.c index d2badc0345b..9ef90203f32 100644 --- a/src/plugins/vrrp/vrrp_api.c +++ b/src/plugins/vrrp/vrrp_api.c @@ -34,6 +34,8 @@ vl_api_vrrp_vr_add_del_t_handler (vl_api_vrrp_vr_add_del_t * mp) ip46_address_t *addrs = 0; int rv; + VALIDATE_SW_IF_INDEX (mp); + api_flags = htonl (mp->flags); clib_memset (&vr_conf, 0, sizeof (vr_conf)); @@ -106,6 +108,7 @@ vl_api_vrrp_vr_add_del_t_handler (vl_api_vrrp_vr_add_del_t * mp) vec_free (addrs); + BAD_SW_IF_INDEX_LABEL; REPLY_MACRO (VL_API_VRRP_VR_ADD_DEL_REPLY); } |