From 1363331f0f705b14decadee037ad9460bd980d83 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 31 Aug 2022 14:37:36 +0000 Subject: ipsec: fix coverity 249212 zero-initialize the variables Type: fix Signed-off-by: Andrew Yourtchenko Change-Id: I51c3856865eab037f646a0d184e82ecb3b5b3216 --- src/vnet/ipsec/ipsec_tun_in.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/ipsec') diff --git a/src/vnet/ipsec/ipsec_tun_in.c b/src/vnet/ipsec/ipsec_tun_in.c index eec03625906..9f1e2d6c5a1 100644 --- a/src/vnet/ipsec/ipsec_tun_in.c +++ b/src/vnet/ipsec/ipsec_tun_in.c @@ -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; -- cgit 1.2.3-korg