diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index ba42afa671..3bba8e0b29 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -11158,6 +11158,7 @@ int wc_AesInit(Aes* aes, void* heap, int devId) if (aes == NULL) return BAD_FUNC_ARG; + aes->isAllocated = 0; aes->heap = heap; aes->rounds = 0;