diff options
author | Florin Coras <fcoras@cisco.com> | 2020-09-24 17:18:13 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2020-09-24 17:19:12 -0700 |
commit | df143bf7054a1db94816ae6c8c59ccf34405af46 (patch) | |
tree | 4e4262ce072260834efba2388b4a2fa0ed5a8907 | |
parent | 48d81b58dfc1b4c93a44e07ed61cbe73458623a2 (diff) |
wireguard: fix uninitialized peer index in handoff
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I41513b9aa6ca0db1fb9392a15e5ac329a635ebfa
-rw-r--r-- | src/plugins/wireguard/wireguard_handoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/wireguard/wireguard_handoff.c b/src/plugins/wireguard/wireguard_handoff.c index b0b74229452..8a2efa508b3 100644 --- a/src/plugins/wireguard/wireguard_handoff.c +++ b/src/plugins/wireguard/wireguard_handoff.c @@ -79,7 +79,7 @@ wg_handoff (vlib_main_t * vm, while (n_left_from > 0) { const wg_peer_t *peer; - index_t peeri; + index_t peeri = INDEX_INVALID; if (PREDICT_FALSE (mode == WG_HANDOFF_HANDSHAKE)) { |