summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-09-24 17:18:13 -0700
committerFlorin Coras <fcoras@cisco.com>2020-09-24 17:19:12 -0700
commitdf143bf7054a1db94816ae6c8c59ccf34405af46 (patch)
tree4e4262ce072260834efba2388b4a2fa0ed5a8907 /src
parent48d81b58dfc1b4c93a44e07ed61cbe73458623a2 (diff)
wireguard: fix uninitialized peer index in handoff
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I41513b9aa6ca0db1fb9392a15e5ac329a635ebfa
Diffstat (limited to 'src')
-rw-r--r--src/plugins/wireguard/wireguard_handoff.c2
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))
{