From 9fc0610720da2e4ee23d24f929345e0d2956ba2c Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 21 Jan 2019 15:52:33 -0800 Subject: [PATCH] Fix to ensure hash devCtx is cleared. --- wolfcrypt/src/sha256.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/sha256.c b/wolfcrypt/src/sha256.c index d8c278c2e..d863c62ee 100644 --- a/wolfcrypt/src/sha256.c +++ b/wolfcrypt/src/sha256.c @@ -543,6 +543,7 @@ static int InitSha256(wc_Sha256* sha256) sha256->heap = heap; #ifdef WOLF_CRYPTO_CB sha256->devId = devId; + sha256->devCtx = NULL; #endif ret = InitSha256(sha256);