mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
@@ -7053,7 +7053,7 @@ void FreeHandshakeHashes(WOLFSSL* ssl)
|
|||||||
int InitHandshakeHashesAndCopy(WOLFSSL* ssl, HS_Hashes* source,
|
int InitHandshakeHashesAndCopy(WOLFSSL* ssl, HS_Hashes* source,
|
||||||
HS_Hashes** destination)
|
HS_Hashes** destination)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret;
|
||||||
HS_Hashes* tmpHashes;
|
HS_Hashes* tmpHashes;
|
||||||
|
|
||||||
if (source == NULL)
|
if (source == NULL)
|
||||||
@@ -7063,7 +7063,11 @@ int InitHandshakeHashesAndCopy(WOLFSSL* ssl, HS_Hashes* source,
|
|||||||
tmpHashes = ssl->hsHashes;
|
tmpHashes = ssl->hsHashes;
|
||||||
ssl->hsHashes = NULL;
|
ssl->hsHashes = NULL;
|
||||||
|
|
||||||
InitHandshakeHashes(ssl);
|
ret = InitHandshakeHashes(ssl);
|
||||||
|
if (ret != 0) {
|
||||||
|
WOLFSSL_MSG_EX("InitHandshakeHashes failed. err = %d", ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
*destination = ssl->hsHashes;
|
*destination = ssl->hsHashes;
|
||||||
ssl->hsHashes = tmpHashes;
|
ssl->hsHashes = tmpHashes;
|
||||||
|
Reference in New Issue
Block a user