Skip to content

Commit

Permalink
Make sure wc_AesInit sets isAllocated = 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Aug 30, 2024
1 parent b5b9d8d commit c449565
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wolfcrypt/src/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c449565

Please sign in to comment.