提交 0aac3a6b 编写于 作者: M Matt Caswell

Fix pipelining bug

The number of read pipelines should be reset in the event of reuse of an
SSL object.
Reviewed-by: NAndy Polyakov <appro@openssl.org>
上级 f44310e9
...@@ -63,6 +63,7 @@ void RECORD_LAYER_clear(RECORD_LAYER *rl) ...@@ -63,6 +63,7 @@ void RECORD_LAYER_clear(RECORD_LAYER *rl)
for(pipes = 0; pipes < rl->numwpipes; pipes++) for(pipes = 0; pipes < rl->numwpipes; pipes++)
SSL3_BUFFER_clear(&rl->wbuf[pipes]); SSL3_BUFFER_clear(&rl->wbuf[pipes]);
rl->numwpipes = 0; rl->numwpipes = 0;
rl->numrpipes = 0;
SSL3_RECORD_clear(rl->rrec, SSL_MAX_PIPELINES); SSL3_RECORD_clear(rl->rrec, SSL_MAX_PIPELINES);
RECORD_LAYER_reset_read_sequence(rl); RECORD_LAYER_reset_read_sequence(rl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册