mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:59:22 +01:00
eapol: Free the checksum in eapol_verify_mic
This commit is contained in:
parent
721be04f95
commit
09861f4ebe
@ -243,7 +243,7 @@ bool eapol_verify_mic(const uint8_t *kck, const struct eapol_key *frame)
|
|||||||
|
|
||||||
l_checksum_updatev(checksum, iov, 3);
|
l_checksum_updatev(checksum, iov, 3);
|
||||||
l_checksum_get_digest(checksum, mic, 16);
|
l_checksum_get_digest(checksum, mic, 16);
|
||||||
l_free(checksum);
|
l_checksum_free(checksum);
|
||||||
|
|
||||||
if (!memcmp(frame->key_mic_data, mic, 16))
|
if (!memcmp(frame->key_mic_data, mic, 16))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user