From: Andrew Yourtchenko Date: Tue, 23 Aug 2022 17:09:25 +0000 (+0000) Subject: ipsec: fix coverity 249204 X-Git-Tag: v23.02-rc0~74 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=4b4aded6afc8abce602cd826c52ec28beb3b7ec0;p=vpp.git ipsec: fix coverity 249204 Zero-initialize the temporary struct, else coverity complains about a bunch of uninitialized fields. Type: fix Signed-off-by: Andrew Yourtchenko Change-Id: I45dc42134f06917a7459d615804f978a175bec0f --- diff --git a/src/vnet/ipsec/ipsec_api.c b/src/vnet/ipsec/ipsec_api.c index 15f7bfafad3..767dc82dca7 100644 --- a/src/vnet/ipsec/ipsec_api.c +++ b/src/vnet/ipsec/ipsec_api.c @@ -480,7 +480,7 @@ ipsec_sad_entry_add_v3 (const vl_api_ipsec_sad_entry_v3_t *entry, ipsec_protocol_t proto; ipsec_sa_flags_t flags; u32 id, spi; - tunnel_t tun; + tunnel_t tun = { 0 }; int rv; id = ntohl (entry->sad_id);