mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
RSN: Set EAPOL-Key Request Secure bit to 1 if PTK is set
The Secure bit in the Key Information field of EAPOL-Key frames is supposed to be set to 1 when there is a security association. This was done for other frames, but not for the EAPOL-Key Request frame where supplicant is requesting a new PTK to be derived (either due to Michael MIC failure report Error=1 or for other reasons with Error=0). In practice, EAPOL-Key Request frame is only sent when there is a PTK in place, so all such frames should have Secure=1. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
41ba40e74d
commit
00e2eb3b7c
@ -131,7 +131,7 @@ void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise)
|
||||
EAPOL_KEY_TYPE_RSN : EAPOL_KEY_TYPE_WPA;
|
||||
key_info = WPA_KEY_INFO_REQUEST | ver;
|
||||
if (sm->ptk_set)
|
||||
key_info |= WPA_KEY_INFO_MIC;
|
||||
key_info |= WPA_KEY_INFO_MIC | WPA_KEY_INFO_SECURE;
|
||||
if (error)
|
||||
key_info |= WPA_KEY_INFO_ERROR;
|
||||
if (pairwise)
|
||||
|
Loading…
Reference in New Issue
Block a user