From 79e8bd2f2b7dff60124bd9583e142c9433bd20c8 Mon Sep 17 00:00:00 2001 From: jrblixt Date: Thu, 26 Jan 2017 12:44:20 -0700 Subject: [PATCH] Restore the ssl->hsHashes->hashSha384 before returning on failure. --- src/internal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal.c b/src/internal.c index 1f2f64e68..653f2aad4 100644 --- a/src/internal.c +++ b/src/internal.c @@ -5656,6 +5656,8 @@ static int BuildFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender) XFREE(sha384, NULL, DYNAMIC_TYPE_TMP_BUFFER); #endif #endif + /* restore */ + ssl->hsHashes->hashSha384 = sha384[0]; return ret; } BuildSHA(ssl, hashes, sender);