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
1 changed files with 1 additions and 1 deletions

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) {