From 3474953d1623dd3f9671e883835589f46b9cfd5d Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sat, 10 Jul 2021 19:07:41 -0500 Subject: [PATCH] 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. --- src/sae.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sae.c b/src/sae.c index 1be6cfcd..fae9124f 100644 --- 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,