From e4942eaa3d2472c42b6d5fc7984fb870046ec20a Mon Sep 17 00:00:00 2001 From: jrblixt Date: Thu, 26 Jan 2017 17:03:05 -0700 Subject: [PATCH] Reorder restore statement. --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;