[PATCH] MKA: Do not set new_sak false until the SAK has be generated
Greg Goblirsch
gregg at thinklogical.com
Mon Apr 25 07:49:55 PDT 2022
If ieee802_1x_kay_generate_new_sak fails new_sak is incorrectly set false.
@@ -2645,10 +2671,10 @@ static void ieee802_1x_participant_timer(void *eloop_ctx, void *timeout_ctx)
}
if (participant->new_sak && participant->is_key_server) {
- if (!ieee802_1x_kay_generate_new_sak(participant))
+ if (!ieee802_1x_kay_generate_new_sak(participant)) {
participant->to_dist_sak = true;
-
- participant->new_sak = false;
+ participant->new_sak = false;
+ }
}
if (participant->retry_count < MAX_RETRY_CNT ||
More information about the Hostap
mailing list