Update t1_lib.c

if not process the ext block in the end of server hello data, jump over it.
This commit is contained in:
yuanzh78
2019-05-05 09:20:06 +08:00
committed by GitHub
parent 4a20b5f54c
commit 857a599eea

View File

@@ -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);