aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-23 17:09:25 +0000
committerFan Zhang <roy.fan.zhang@intel.com>2022-08-24 09:08:32 +0000
commit4b4aded6afc8abce602cd826c52ec28beb3b7ec0 (patch)
treebb8a7fe14f17f661dabe1b4c7496e14727a496bb /src
parent9cd37fb28ce03b22a741e2be31250790b11182e0 (diff)
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 <ayourtch@gmail.com> Change-Id: I45dc42134f06917a7459d615804f978a175bec0f
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ipsec/ipsec_api.c2
1 files changed, 1 insertions, 1 deletions
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);