Avoid suppressing error from Cy_Crypto_Core_Sha_Finish in wc_Sha512_224Final.

Fixes F-4002.
This commit is contained in:
Kareem
2026-06-04 17:12:49 -07:00
parent b2d5cbf6f1
commit 8e268dee13
@@ -644,6 +644,9 @@ int wc_Sha512_224Final(wc_Sha512* sha, byte* hash)
wolfSSL_CryptHwMutexUnLock();
}
if (ret != 0)
return ret;
/* Reset state */
return wc_InitSha512_224(sha);
}