mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
only copy the hsHashes if the server is actually using ech
This commit is contained in:
@ -7256,7 +7256,7 @@ int SendTls13ServerHello(WOLFSSL* ssl, byte extMsgType)
|
|||||||
|
|
||||||
#ifdef HAVE_ECH
|
#ifdef HAVE_ECH
|
||||||
/* copy the hsHashes to hsHashesEch since they will get blown away by hrr */
|
/* copy the hsHashes to hsHashesEch since they will get blown away by hrr */
|
||||||
if (ssl->hsHashesEch == NULL)
|
if (ssl->ctx->echConfigs != NULL && ssl->hsHashesEch == NULL)
|
||||||
InitHandshakeHashesAndCopy(ssl, ssl->hsHashes, &ssl->hsHashesEch);
|
InitHandshakeHashesAndCopy(ssl, ssl->hsHashes, &ssl->hsHashesEch);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user