3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-28 07:39:23 +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) 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