commit 3474953d1623dd3f9671e883835589f46b9cfd5d
parent d8f9d9d45cc4cfecef65927eb518048184a834b9
Author: Denis Kenzior <denkenz@gmail.com>
Date: Sat, 10 Jul 2021 19:07:41 -0500
sae: Properly return -EAGAIN when retransmitting
Make sure to return -EAGAIN whenever a received frame from the peer
results in a retransmission. This also prevents the frame from being
mistakenly processed further in sae_rx_authenticate.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sae.c b/src/sae.c
@@ -912,7 +912,7 @@ static int sae_verify_confirmed(struct sae_sm *sm, uint16_t trans,
sae_send_commit(sm, true);
sae_send_confirm(sm);
- return 0;
+ return -EAGAIN;
}
/*
@@ -964,7 +964,7 @@ static int sae_verify_accepted(struct sae_sm *sm, uint16_t trans,
sae_send_confirm(sm);
- return 0;
+ return -EAGAIN;
}
static int sae_verify_packet(struct sae_sm *sm, uint16_t trans,