From 18b7429e6ddd403c34592732d61eedf296819f39 Mon Sep 17 00:00:00 2001 From: Kareem Date: Mon, 16 Feb 2026 12:09:30 -0700 Subject: [PATCH] Ensure length is at least ID_LEN in SetTicket. --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 30579538e5e..c3455f079e3 100644 --- a/src/internal.c +++ b/src/internal.c @@ -34834,7 +34834,7 @@ int SetTicket(WOLFSSL* ssl, const byte* ticket, word32 length) } ssl->session->ticketLen = (word16)length; - if (length > 0) { + if (length >= ID_LEN) { XMEMCPY(ssl->session->ticket, ticket, length); if (ssl->session_ticket_cb != NULL) { ssl->session_ticket_cb(ssl,