From: Bodo Möller Date: Mon, 15 Oct 2001 20:16:36 +0000 (+0000) Subject: For consistency, set s->init_num in the 'reuse_message' case X-Git-Tag: OpenSSL_0_9_6c~26^2~124 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=8f71fb8d9817b7947c68ea93971eb8b6223ae40d;hp=48948d53b6f61aa14bc5eab33f67f124c43175ff For consistency, set s->init_num in the 'reuse_message' case (if s23_srvr.c faked the message, s->init_num is 0). --- diff --git a/ssl/s3_both.c b/ssl/s3_both.c index 409120bade..8e840ec7c9 100644 --- a/ssl/s3_both.c +++ b/ssl/s3_both.c @@ -357,7 +357,8 @@ long ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok) } *ok=1; s->init_msg = s->init_buf->data + 4; - return((int)s->s3->tmp.message_size); + s->init_num = (int)s->s3->tmp.message_size; + return s->init_num; } p=(unsigned char *)s->init_buf->data;