nat: fix coverity 249194 53/37053/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 31 Aug 2022 14:11:59 +0000 (14:11 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 31 Aug 2022 16:01:08 +0000 (16:01 +0000)
Zero-initialize a variable.

Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: Iccf2eb4bf26755d6cd93fc70df3c5481d69ce7eb

src/plugins/nat/nat44-ed/nat44_ed_in2out.c

index 4eced06..b0e0784 100644 (file)
@@ -1055,7 +1055,7 @@ nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t *vm,
       ip_protocol_t proto0;
       ip4_header_t *ip0;
       snat_session_t *s0 = 0;
-      clib_bihash_kv_16_8_t kv0, value0;
+      clib_bihash_kv_16_8_t kv0 = { 0 }, value0;
       nat_translation_error_e translation_error = NAT_ED_TRNSL_ERR_SUCCESS;
       nat_6t_flow_t *f = 0;
       nat_6t_t lookup;