提交 67f78ead 编写于 作者: M Matt Caswell

Make sure we reset the read sequence when skipping records

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
上级 10109364
...@@ -433,6 +433,7 @@ int ssl3_get_record(SSL *s) ...@@ -433,6 +433,7 @@ int ssl3_get_record(SSL *s)
thisrr->length = 0; thisrr->length = 0;
thisrr->read = 1; thisrr->read = 1;
RECORD_LAYER_set_numrpipes(&s->rlayer, 1); RECORD_LAYER_set_numrpipes(&s->rlayer, 1);
RECORD_LAYER_reset_read_sequence(&s->rlayer);
return 1; return 1;
} }
al = SSL_AD_DECRYPTION_FAILED; al = SSL_AD_DECRYPTION_FAILED;
...@@ -516,6 +517,7 @@ int ssl3_get_record(SSL *s) ...@@ -516,6 +517,7 @@ int ssl3_get_record(SSL *s)
thisrr->length = 0; thisrr->length = 0;
thisrr->read = 1; thisrr->read = 1;
RECORD_LAYER_set_numrpipes(&s->rlayer, 1); RECORD_LAYER_set_numrpipes(&s->rlayer, 1);
RECORD_LAYER_reset_read_sequence(&s->rlayer);
return 1; return 1;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册