From c83eda8c22f08346d5434662643de523a469c81e Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 13 Aug 2015 10:04:23 +0100 Subject: [PATCH] Fix session tickets MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Commit 9ceb2426b0 (PACKETise ClientHello) broke session tickets by failing to detect the session ticket extension in an incoming ClientHello. This commit fixes the bug. Reviewed-by: Emilia Käsper --- ssl/t1_lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index e37411ccbf..f0042886c6 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -3043,6 +3043,11 @@ int tls1_process_ticket(SSL *s, PACKET *pkt, unsigned char *session_id, break; } goto end; + } else { + if (!PACKET_forward(pkt, size)) { + retv = -1; + goto end; + } } } retv = 0; -- 2.34.1