mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-19 10:02:33 +01:00
eapol: Fix eapol_verify_mic
The calculation was using an invalid length
This commit is contained in:
parent
cdfa59227a
commit
6ba57c9fa8
@ -83,7 +83,7 @@ bool eapol_verify_mic(const uint8_t *kck, const struct eapol_key *frame)
|
|||||||
|
|
||||||
iov[2].iov_base = ((void *) frame) +
|
iov[2].iov_base = ((void *) frame) +
|
||||||
offsetof(struct eapol_key, key_data_len);
|
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);
|
L_BE16_TO_CPU(frame->key_data_len);
|
||||||
|
|
||||||
switch (frame->key_descriptor_version) {
|
switch (frame->key_descriptor_version) {
|
||||||
|
Loading…
Reference in New Issue
Block a user