3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 22:19:23 +01:00

eapol: Free the checksum in eapol_verify_mic

This commit is contained in:
Andrew Zaborowski 2016-10-04 05:47:42 +02:00 committed by Denis Kenzior
parent 721be04f95
commit 09861f4ebe

View File

@ -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;