diff options
author | Neale Ranns <nranns@cisco.com> | 2020-02-20 12:56:22 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-08-12 23:32:24 +0000 |
commit | ea9d86e749514c976b8953d3582c68e2affbfe67 (patch) | |
tree | 9970bbfe45b249556840040b826dc27baf985ac6 /src/plugins | |
parent | d243b03eef76593eba148ca94a5bb87ad9f889a2 (diff) |
gbp: Coverity warnings for unitialized variables
Type: fix
Change-Id: If74ad528e68f45b00719295388e0e1399452ef93
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit e9a630a5248ee6e234c1bf1fdb2c29fc6239f60d)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gbp/gbp_api.c | 2 | ||||
-rw-r--r-- | src/plugins/gbp/gbp_contract.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/gbp/gbp_api.c b/src/plugins/gbp/gbp_api.c index b347c1ddea4..7832b5026a0 100644 --- a/src/plugins/gbp/gbp_api.c +++ b/src/plugins/gbp/gbp_api.c @@ -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; diff --git a/src/plugins/gbp/gbp_contract.h b/src/plugins/gbp/gbp_contract.h index 509e785dd9e..1e74db60116 100644 --- a/src/plugins/gbp/gbp_contract.h +++ b/src/plugins/gbp/gbp_contract.h @@ -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) { |