From f68f99b0009fcbaa8660732356892e530e6873f2 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Fri, 20 Dec 2024 09:48:01 -0700 Subject: [PATCH] Remove dead code in TLSX_PopulateExtensions() around MAX_PSK_ID_LEN check --- src/tls.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tls.c b/src/tls.c index 1f1bbc3fe4..0e5f43b1fd 100644 --- a/src/tls.c +++ b/src/tls.c @@ -13781,11 +13781,6 @@ int TLSX_PopulateExtensions(WOLFSSL* ssl, byte isServer) word64 now, milli; #endif - if (isServer && (sess->ticketLen > MAX_PSK_ID_LEN)) { - WOLFSSL_MSG("Session ticket length for PSK ext is too large"); - return BUFFER_ERROR; - } - /* Determine the MAC algorithm for the cipher suite used. */ ssl->options.cipherSuite0 = sess->cipherSuite0; ssl->options.cipherSuite = sess->cipherSuite;