[PATCH v2] MKA: Do not set new_sak false until the SAK has be generated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If ieee802_1x_kay_generate_new_sak fails, new_sak is incorrectly set false.

Signed-off-by: Greg Goblirsch <gregg@xxxxxxxxxxxxxxxx>

@@ -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 ||


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux