aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-02-19 08:27:34 -0800
committerDamjan Marion <dmarion@me.com>2019-02-20 09:05:34 +0000
commit8c2dd1bf54af71e4b256bdf885efe2ac53fc6c86 (patch)
tree914438d4ac1a48186b06b9981e9322c0e7f1a438 /src
parent558d872231e0e7b5cad9c0c570583aa34746e0df (diff)
IPSEC: API coverity error of unitialised stat_index value
Change-Id: If884a3840f34090e33ce7808d38e50f919290d9f Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ipsec/ipsec_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec_api.c b/src/vnet/ipsec/ipsec_api.c
index a26f486d6ef..4b4ce4e1770 100644
--- a/src/vnet/ipsec/ipsec_api.c
+++ b/src/vnet/ipsec/ipsec_api.c
@@ -146,6 +146,8 @@ static void vl_api_ipsec_spd_entry_add_del_t_handler
u32 stat_index;
int rv;
+ stat_index = ~0;
+
#if WITH_LIBSSL > 0
ipsec_policy_t p;