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:
087c811
)
NAT: fix coverity error 190176 (VPP-1474)
84/16584/1
author
Matus Fabian
<matfabia@cisco.com>
Fri, 21 Dec 2018 12:01:00 +0000
(
04:01
-0800)
committer
Matus Fabian
<matfabia@cisco.com>
Fri, 21 Dec 2018 12:01:00 +0000
(
04:01
-0800)
Change-Id: I0ee80c7bec59d3e9c69e92e6cf0af1a6864a4ec4
Signed-off-by: Matus Fabian <matfabia@cisco.com>
src/plugins/nat/nat.c
patch
|
blob
|
history
diff --git
a/src/plugins/nat/nat.c
b/src/plugins/nat/nat.c
index
c2c812d
..
0cfcbf1
100755
(executable)
--- a/
src/plugins/nat/nat.c
+++ b/
src/plugins/nat/nat.c
@@
-1575,6
+1575,8
@@
nat44_lb_static_mapping_add_del_local (ip4_address_t e_addr, u16 e_port,
}));
/* *INDENT-ON* */
+ ASSERT (vec_len (locals) > 1);
+
local = pool_elt_at_index (m->locals, locals[0]);
local->prefix = local->probability;
for (i = 1; i < vec_len (locals); i++)