Merge pull request #4869 from wolfSSL/silabs-aes

SILABS port: fix sizeof
This commit is contained in:
David Garske
2022-02-17 10:45:47 -08:00
committed by GitHub

View File

@ -48,7 +48,7 @@ int wc_AesSetKey(Aes* aes, const byte* userKey, word32 keylen,
return BUFFER_E;
}
XMEMSET(aes, 0, sizeof(aes));
XMEMSET(aes, 0, sizeof(*aes));
if (keylen > sizeof(aes->key)) {
return BAD_FUNC_ARG;