mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
ssl.c: use InitHandshakeHashes(), not FreeHandshakeHashes(), to reset ssl->hsHashes.
This commit is contained in:
@@ -20576,7 +20576,8 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
|
||||
ssl->keys.encryptionOn = 0;
|
||||
XMEMSET(&ssl->msgsReceived, 0, sizeof(ssl->msgsReceived));
|
||||
|
||||
FreeHandshakeHashes(ssl);
|
||||
if (ssl->hsHashes)
|
||||
(void)InitHandshakeHashes(ssl);
|
||||
|
||||
#ifdef SESSION_CERTS
|
||||
ssl->session->chain.count = 0;
|
||||
|
Reference in New Issue
Block a user