3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

eapol: Fix eapol_verify_mic

The calculation was using an invalid length
This commit is contained in:
Denis Kenzior 2015-02-24 10:42:20 -06:00
parent cdfa59227a
commit 6ba57c9fa8

View File

@ -83,7 +83,7 @@ bool eapol_verify_mic(const uint8_t *kck, const struct eapol_key *frame)
iov[2].iov_base = ((void *) frame) +
offsetof(struct eapol_key, key_data_len);
iov[2].iov_len = frame_len - offsetof(struct eapol_key, key_data) +
iov[2].iov_len = frame_len - offsetof(struct eapol_key, key_data_len) +
L_BE16_TO_CPU(frame->key_data_len);
switch (frame->key_descriptor_version) {