From: Bodo Möller Date: Tue, 26 Sep 2000 11:30:59 +0000 (+0000) Subject: Don't modify s->read_ahead in SSL_clear, which is called from X-Git-Tag: OpenSSL_0_9_6~1^2~21 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=544ebbceb49236339d7836cae4aaa7f618817aa3;ds=sidebyside Don't modify s->read_ahead in SSL_clear, which is called from accept/connect functions; those should not change the read_ahead setting of the SSL structure. --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 635b25062e..d77d340388 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -119,7 +119,9 @@ int SSL_clear(SSL *s) s->client_version=s->version; s->rwstate=SSL_NOTHING; s->rstate=SSL_ST_READ_HEADER; +#if 0 s->read_ahead=s->ctx->read_ahead; +#endif if (s->init_buf != NULL) {