gbp: Coverity warnings for unitialized variables 36/28336/2
authorNeale Ranns <nranns@cisco.com>
Thu, 20 Feb 2020 12:56:22 +0000 (12:56 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 12 Aug 2020 23:32:24 +0000 (23:32 +0000)
Type: fix

Change-Id: If74ad528e68f45b00719295388e0e1399452ef93
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit e9a630a5248ee6e234c1bf1fdb2c29fc6239f60d)

src/plugins/gbp/gbp_api.c
src/plugins/gbp/gbp_contract.h

index b347c1d..7832b50 100644 (file)
@@ -140,6 +140,8 @@ vl_api_gbp_endpoint_add_t_handler (vl_api_gbp_endpoint_add_t * mp)
   mac_address_t mac;
   int rv = 0, ii;
 
+  handle = INDEX_INVALID;
+
   VALIDATE_SW_IF_INDEX (&(mp->endpoint));
 
   gef = gbp_endpoint_flags_decode (mp->endpoint.flags), ips = NULL;
index 509e785..1e74db6 100644 (file)
@@ -245,6 +245,7 @@ gbp_contract_apply (vlib_main_t * vm, gbp_main_t * gm,
   u8 ip6, action;
 
   *rule = 0;
+  trace_bitmap = 0;
 
   if (key->gck_src == key->gck_dst)
     {