restore internal hashes pointer on error, CID 515542

This commit is contained in:
JacobBarthelmeh
2025-04-18 16:52:25 -06:00
parent 69a4607f84
commit d481086910

View File

@@ -7306,6 +7306,8 @@ int InitHandshakeHashesAndCopy(WOLFSSL* ssl, HS_Hashes* source,
ret = InitHandshakeHashes(ssl);
if (ret != 0) {
WOLFSSL_MSG_EX("InitHandshakeHashes failed. err = %d", ret);
ssl->hsHashes = tmpHashes; /* restore hsHashes pointer to original
* before returning */
return ret;
}