From 0aac3a6b1979dbebd5325bb48c01f584bf35017e Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Wed, 1 Jun 2016 16:25:31 +0100 Subject: [PATCH] Fix pipelining bug The number of read pipelines should be reset in the event of reuse of an SSL object. Reviewed-by: Andy Polyakov --- ssl/record/rec_layer_s3.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.34.1