cnat: Coverity fix
Type: fix Change-Id: I004a49e59d8643599fc99ad6fa5848d3cf289b7a Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
This commit is contained in:
committed by
Florin Coras
parent
7a588fc781
commit
b0c2ec5e7c
@@ -91,7 +91,7 @@ cnat_snat_policy_add_del_if (u32 sw_if_index, u8 is_add,
|
||||
{
|
||||
cnat_snat_policy_main_t *cpm = &cnat_snat_policy_main;
|
||||
|
||||
if (table > ARRAY_LEN (cpm->interface_maps))
|
||||
if (table >= ARRAY_LEN (cpm->interface_maps))
|
||||
return VNET_API_ERROR_INVALID_VALUE;
|
||||
|
||||
clib_bitmap_t **map = &cpm->interface_maps[table];
|
||||
|
||||
Reference in New Issue
Block a user