From: Bodo Möller Date: Sun, 14 Apr 2002 13:04:58 +0000 (+0000) Subject: fix length field we create when converting SSL 2.0 format into SSL 3.0/TLS 1.0 format X-Git-Tag: OpenSSL_0_9_7-beta1~103 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1dcb6c994fc11e3b04b336cb6ff0101bf944a127;p=oweals%2Fopenssl.git fix length field we create when converting SSL 2.0 format into SSL 3.0/TLS 1.0 format (the bug was introduced with message callback support) --- 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 */