IPSEC: API coverity error of unitialised stat_index value 93/17693/2
authorNeale Ranns <nranns@cisco.com>
Tue, 19 Feb 2019 16:27:34 +0000 (08:27 -0800)
committerDamjan Marion <dmarion@me.com>
Wed, 20 Feb 2019 09:05:34 +0000 (09:05 +0000)
Change-Id: If884a3840f34090e33ce7808d38e50f919290d9f
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/ipsec/ipsec_api.c

index a26f486..4b4ce4e 100644 (file)
@@ -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;