aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/cnat/cnat_snat_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cnat/cnat_snat_policy.c b/src/plugins/cnat/cnat_snat_policy.c
index e2901631b28..d59156f34c8 100644
--- a/src/plugins/cnat/cnat_snat_policy.c
+++ b/src/plugins/cnat/cnat_snat_policy.c
@@ -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];