3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 06:02:39 +01:00

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:
Denis Kenzior 2016-12-12 22:07:31 -06:00
parent 20c8761711
commit fea29229f3

View File

@ -1224,7 +1224,7 @@ static void eapol_handle_gtk_1_of_2(struct eapol_sm *sm,
if (!igtk || igtk_len < 8)
return;
igtk_key_index = util_bit_field(igtk[0], 0, 2);
igtk_key_index = l_get_le16(igtk);;
igtk += 2;
igtk_len -= 2;
} else