From d9bba72b8c9c9039d68bcd17040edb44cd417a36 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Mon, 5 Jan 2026 09:04:36 +0100 Subject: [PATCH] tls13: merge guarded code in a single section --- src/tls13.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 9f25f47a0..fefab21c6 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -5744,15 +5744,13 @@ static int DoTls13EncryptedExtensions(WOLFSSL* ssl, const byte* input, if (ext == NULL || !ext->val) ssl->earlyData = no_early_data; } -#endif -#ifdef WOLFSSL_EARLY_DATA if (ssl->earlyData == no_early_data) { ret = SetKeysSide(ssl, ENCRYPT_SIDE_ONLY); if (ret != 0) return ret; } -#endif +#endif /* WOLFSSL_EARLY_DATA */ ssl->options.serverState = SERVER_ENCRYPTED_EXTENSIONS_COMPLETE;