]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix HelloVerifyRequest construction
authorMatt Caswell <matt@openssl.org>
Fri, 23 Sep 2016 13:40:16 +0000 (14:40 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 26 Sep 2016 13:40:33 +0000 (14:40 +0100)
commit c536b6be1a introduced a bug that causes a reachable assert. This fixes
it.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/statem/statem_srvr.c

index 03d75d0c88fc1fcb64ecd12aebc202b9b4dfe3a0..fbca5a168ad378125792f7373a38368a294ebd15 100644 (file)
@@ -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;