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.
This commit is contained in:
Bodo Möller 2000-09-26 11:30:59 +00:00
parent 6d0dcbedb1
commit 544ebbceb4

View File

@ -119,7 +119,9 @@ int SSL_clear(SSL *s)
s->client_version=s->version; s->client_version=s->version;
s->rwstate=SSL_NOTHING; s->rwstate=SSL_NOTHING;
s->rstate=SSL_ST_READ_HEADER; s->rstate=SSL_ST_READ_HEADER;
#if 0
s->read_ahead=s->ctx->read_ahead; s->read_ahead=s->ctx->read_ahead;
#endif
if (s->init_buf != NULL) if (s->init_buf != NULL)
{ {