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