gbp: Coverity warnings for unitialized variables 13/25313/2
authorNeale Ranns <nranns@cisco.com>
Thu, 20 Feb 2020 12:56:22 +0000 (12:56 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 21 Feb 2020 09:55:34 +0000 (09:55 +0000)
Type: fix

Change-Id: If74ad528e68f45b00719295388e0e1399452ef93
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/plugins/gbp/gbp_api.c
src/plugins/gbp/gbp_contract.h

index bbcd2d4..aea03d8 100644 (file)
@@ -99,6 +99,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)
     {