eapol: Fix IGTK key index extraction
IGTK key index is a 2-byte little-endian field, not a bit field. This makes sense since IGTK key id can only be 4 or 5.
This commit is contained in:
parent
20c8761711
commit
fea29229f3
|
@ -1224,7 +1224,7 @@ static void eapol_handle_gtk_1_of_2(struct eapol_sm *sm,
|
||||||
if (!igtk || igtk_len < 8)
|
if (!igtk || igtk_len < 8)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
igtk_key_index = util_bit_field(igtk[0], 0, 2);
|
igtk_key_index = l_get_le16(igtk);;
|
||||||
igtk += 2;
|
igtk += 2;
|
||||||
igtk_len -= 2;
|
igtk_len -= 2;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue