diff --git a/src/internal.c b/src/internal.c index e83e35bfc..486421b21 100644 --- a/src/internal.c +++ b/src/internal.c @@ -5660,9 +5660,9 @@ static int BuildFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender) if (ret != 0) { #ifdef WOLFSSL_SMALL_STACK #ifdef WOLFSSL_SHA384 - XFREE(sha384, NULL, DYNAMIC_TYPE_TMP_BUFFER); /* restore */ ssl->hsHashes->hashSha384 = sha384[0]; + XFREE(sha384, NULL, DYNAMIC_TYPE_TMP_BUFFER); #endif #endif return ret;