Fix to ensure hash devCtx is cleared.

This commit is contained in:
David Garske
2019-01-21 15:52:33 -08:00
parent 7e3082906e
commit 9fc0610720

View File

@ -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);