ipsec: fix coverity 249212 56/37056/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 31 Aug 2022 14:37:36 +0000 (14:37 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 31 Aug 2022 19:14:56 +0000 (19:14 +0000)
zero-initialize the variables

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

src/vnet/ipsec/ipsec_tun_in.c

index eec0362..9f1e2d6 100644 (file)
@@ -156,8 +156,8 @@ ipsec_tun_protect_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
   while (n_left_from > 0)
     {
       u32 sw_if_index0, len0, hdr_sz0;
-      clib_bihash_kv_24_16_t bkey60;
-      clib_bihash_kv_8_16_t bkey40;
+      clib_bihash_kv_24_16_t bkey60 = { 0 };
+      clib_bihash_kv_8_16_t bkey40 = { 0 };
       ipsec4_tunnel_kv_t *key40;
       ipsec6_tunnel_kv_t *key60;
       ip4_header_t *ip40;