summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-06-01 16:25:31 +0100
committerMatt Caswell <matt@openssl.org>2016-06-07 22:07:36 +0100
commit0aac3a6b1979dbebd5325bb48c01f584bf35017e (patch)
tree675e14b36d589c766fcd6d3843873c8f43bbcbfc /ssl
parentf44310e9ce2cdab64a9269ad8014be978e333db6 (diff)
Fix pipelining bug
The number of read pipelines should be reset in the event of reuse of an SSL object. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r--ssl/record/rec_layer_s3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index 8c02efd2a2..a656b56cf2 100644
--- a/ssl/record/rec_layer_s3.c
+++ b/ssl/record/rec_layer_s3.c
@@ -63,6 +63,7 @@ void RECORD_LAYER_clear(RECORD_LAYER *rl)
for(pipes = 0; pipes < rl->numwpipes; pipes++)
SSL3_BUFFER_clear(&rl->wbuf[pipes]);
rl->numwpipes = 0;
+ rl->numrpipes = 0;
SSL3_RECORD_clear(rl->rrec, SSL_MAX_PIPELINES);
RECORD_LAYER_reset_read_sequence(rl);