aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-31 14:16:10 +0000
committerMatthew Smith <mgsmith@netgate.com>2022-08-31 16:00:14 +0000
commitab46a3c97364757d333119bbd5c48ea9beaebb70 (patch)
tree3e89bf18c60222100e1a81b90372046680568734
parente4046528d412ff64bc1e0cfe3496a56119923718 (diff)
nat: fix coverity 249178
Zero-initialize the variable Type: fix Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: I4ee127ac3e2a3beffa11bbc96db1f3254b3f7c5d
-rw-r--r--src/plugins/nat/nat44-ed/nat44_ed_in2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat44-ed/nat44_ed_in2out.c b/src/plugins/nat/nat44-ed/nat44_ed_in2out.c
index 179405e72b7..4eced06aa47 100644
--- a/src/plugins/nat/nat44-ed/nat44_ed_in2out.c
+++ b/src/plugins/nat/nat44-ed/nat44_ed_in2out.c
@@ -1346,7 +1346,7 @@ nat44_ed_in2out_slow_path_node_fn_inline (vlib_main_t *vm,
udp_header_t *udp0;
icmp46_header_t *icmp0;
snat_session_t *s0 = 0;
- clib_bihash_kv_16_8_t kv0, value0;
+ clib_bihash_kv_16_8_t kv0 = { 0 }, value0;
int translation_error = NAT_ED_TRNSL_ERR_SUCCESS;
b0 = *b;