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

dpp-util: pass actual ad_size, not hard coded '2'.

This commit is contained in:
James Prestwood 2021-12-20 13:49:08 -08:00 committed by Denis Kenzior
parent c42080fe28
commit d3fca54a7e

View File

@ -280,7 +280,7 @@ uint8_t *dpp_unwrap_attr(const void *ad0, size_t ad0_len, const void *ad1,
unwrapped = l_malloc(wrapped_len - 16);
if (!aes_siv_decrypt(key, key_len, wrapped, wrapped_len, ad, 2,
if (!aes_siv_decrypt(key, key_len, wrapped, wrapped_len, ad, ad_size,
unwrapped)) {
l_free(unwrapped);
return NULL;