From 857a599eea0ea0945272fedd5238e5d1691f3031 Mon Sep 17 00:00:00 2001 From: yuanzh78 Date: Sun, 5 May 2019 09:20:06 +0800 Subject: [PATCH] Update t1_lib.c if not process the ext block in the end of server hello data, jump over it. --- ssl/t1_lib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 9e28c256..d3001575 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -2982,8 +2982,11 @@ int ssl_parse_serverhello_tlsext(SSL *s, PACKET *pkt) { int al = -1; - if (s->version < SSL3_VERSION) + if (s->version < SSL3_VERSION){ + // jump over the ext block + packet_forward(pkt, pkt->remaining); return 1; +} if (ssl_scan_serverhello_tlsext(s, pkt, &al) <= 0) { ssl3_send_alert(s, SSL3_AL_FATAL, al);