summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-09-26 11:30:59 +0000
committerBodo Möller <bodo@openssl.org>2000-09-26 11:30:59 +0000
commit544ebbceb49236339d7836cae4aaa7f618817aa3 (patch)
tree0c3a584eb4ff86283c454a0ee04bc4b4eaeb56a2 /ssl
parent6d0dcbedb19a17ce29a068278208d89bdc0b18c3 (diff)
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.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 2 insertions, 0 deletions
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)
{