forked from wolfSSL/wolfssl
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
|
||||
/* 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);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user