From 93b305dc8ed1b688ca823df706663aa46c28bef3 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 14 Mar 2024 15:05:09 +0100 Subject: [PATCH] tls13: Use a flag not a counter for CCS and HRR handling Reconcile with 5fbd27055d15c8ac234a229389ff4e31977487a0 on another branch Signed-off-by: Gilles Peskine --- library/ssl_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_client.c b/library/ssl_client.c index 371c06c974..345e608938 100644 --- a/library/ssl_client.c +++ b/library/ssl_client.c @@ -793,7 +793,7 @@ static int ssl_prepare_client_hello(mbedtls_ssl_context *ssl) #endif { #if defined(MBEDTLS_SSL_PROTO_TLS1_3) - if (ssl->handshake->hello_retry_request_count == 0) + if (!ssl->handshake->hello_retry_request_flag) #endif { ret = ssl_generate_random(ssl);