Reorder restore statement.

This commit is contained in:
jrblixt
2017-01-26 17:03:05 -07:00
parent 74f72b5c6b
commit e4942eaa3d

View File

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