Restore the ssl->hsHashes->hashSha384 before returning on failure.

This commit is contained in:
jrblixt
2017-01-26 12:44:20 -07:00
parent be768f5395
commit 79e8bd2f2b

View File

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