Commit 98c1f5b4 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix HelloVerifyRequest construction



commit c536b6be introduced a bug that causes a reachable assert. This fixes
it.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 3133c2d3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;