X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fs23_srvr.c;h=9e89cc7f9a24bacbe61834fff9aa86bb2b5dad01;hp=6170861705e04b4b2927c7be40c863a867ef7f37;hb=2fb3f002d0f7f0ffe530dffa39df81f75ab08733;hpb=82b0bf0b8792bdc113cadc04a1f9d40f0e0cfbfc;ds=inline diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c index 6170861705..9e89cc7f9a 100644 --- a/ssl/s23_srvr.c +++ b/ssl/s23_srvr.c @@ -473,7 +473,7 @@ int ssl23_get_client_hello(SSL *s) *(d++)=1; *(d++)=0; - i=(d-(unsigned char *)s->init_buf->data); + i = (d-(unsigned char *)s->init_buf->data) - 4; l2n3((long)i, d_len); /* get the data reused from the init_buf */