From: Matt Caswell Date: Fri, 23 Sep 2016 13:40:16 +0000 (+0100) Subject: Fix HelloVerifyRequest construction X-Git-Tag: OpenSSL_1_1_1-pre1~3458 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98c1f5b429d036c0370de15f4d6851eed41fa5b3;p=oweals%2Fopenssl.git Fix HelloVerifyRequest construction commit c536b6be1a introduced a bug that causes a reachable assert. This fixes it. Reviewed-by: Rich Salz --- diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index 03d75d0c88..fbca5a168a 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -885,6 +885,8 @@ int dtls_construct_hello_verify_request(SSL *s) } /* number of bytes to write */ + s->d1->w_msg_hdr.msg_len = msglen - DTLS1_HM_HEADER_LENGTH; + s->d1->w_msg_hdr.frag_len = msglen - DTLS1_HM_HEADER_LENGTH; s->init_num = (int)msglen; s->init_off = 0;