diff --git a/src/tls13.c b/src/tls13.c index fee31b88b..480959b27 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -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