From: Neale Ranns Date: Tue, 19 Feb 2019 16:27:34 +0000 (-0800) Subject: IPSEC: API coverity error of unitialised stat_index value X-Git-Tag: v19.04-rc1~455 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=8c2dd1bf54af71e4b256bdf885efe2ac53fc6c86 IPSEC: API coverity error of unitialised stat_index value Change-Id: If884a3840f34090e33ce7808d38e50f919290d9f Signed-off-by: Neale Ranns --- 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;