diff options
author | Matt Caswell <matt@openssl.org> | 2017-02-23 16:05:57 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-02 17:44:15 +0000 |
commit | 67f78eadd00ce1c3a5bbde5e42530c1a61d363a2 (patch) | |
tree | 2cfc67e1d14ed58b2b1b46a0ece97a4a46f8a2ad | |
parent | 10109364bf0f07c393bd4283470f1bf57f31cecb (diff) |
Make sure we reset the read sequence when skipping records
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
-rw-r--r-- | ssl/record/ssl3_record.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/record/ssl3_record.c b/ssl/record/ssl3_record.c index 94c221f558..3228bda4b9 100644 --- a/ssl/record/ssl3_record.c +++ b/ssl/record/ssl3_record.c @@ -433,6 +433,7 @@ int ssl3_get_record(SSL *s) thisrr->length = 0; thisrr->read = 1; RECORD_LAYER_set_numrpipes(&s->rlayer, 1); + RECORD_LAYER_reset_read_sequence(&s->rlayer); return 1; } al = SSL_AD_DECRYPTION_FAILED; @@ -516,6 +517,7 @@ int ssl3_get_record(SSL *s) thisrr->length = 0; thisrr->read = 1; RECORD_LAYER_set_numrpipes(&s->rlayer, 1); + RECORD_LAYER_reset_read_sequence(&s->rlayer); return 1; } /* |