aboutsummaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-09-26 11:38:05 +0000
committerBodo Möller <bodo@openssl.org>2000-09-26 11:38:05 +0000
commit086a32d7542dc8c3211b7da9f0b38fdf4e83b247 (patch)
tree40beb5c0ee9200334c53616b065216f612c21ce5 /ssl
parent544ebbceb49236339d7836cae4aaa7f618817aa3 (diff)
downloadopenssl-086a32d7542dc8c3211b7da9f0b38fdf4e83b247.tar.gz
Set s->read_ahead in SSL_new because SSL_clear no longer modifies it.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index d77d340388..fec98dd8f4 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -231,6 +231,7 @@ SSL *SSL_new(SSL_CTX *ctx)
s->server=(ctx->method->ssl_accept == ssl_undefined_function)?0:1;
s->options=ctx->options;
s->mode=ctx->mode;
+ s->read_ahead=ctx->read_ahead; /* used to happen in SSL_clear */
SSL_clear(s);
CRYPTO_new_ex_data(ssl_meth,s,&s->ex_data);