Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7a588fc
)
cnat: Coverity fix
83/31583/2
author
Nathan Skrzypczak
<
[email protected]
>
Mon, 8 Mar 2021 08:37:43 +0000
(09:37 +0100)
committer
Florin Coras
<
[email protected]
>
Mon, 8 Mar 2021 15:26:29 +0000
(15:26 +0000)
Type: fix
Change-Id: I004a49e59d8643599fc99ad6fa5848d3cf289b7a
Signed-off-by: Nathan Skrzypczak <
[email protected]
>
src/plugins/cnat/cnat_snat_policy.c
patch
|
blob
|
history
diff --git
a/src/plugins/cnat/cnat_snat_policy.c
b/src/plugins/cnat/cnat_snat_policy.c
index
e290163
..
d59156f
100644
(file)
--- 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];