From c449565d8537bfd86910bb9b7f1759dc98b958ab Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 30 Aug 2024 11:17:18 -0700 Subject: [PATCH] Make sure `wc_AesInit` sets `isAllocated = 0`. --- wolfcrypt/src/aes.c | 1 + 1 file changed, 1 insertion(+) 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;