Mark DTLS records as read when we have finished with them
authorMatt Caswell <matt@openssl.org>
Wed, 2 May 2018 15:07:13 +0000 (16:07 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 11 May 2018 13:20:56 +0000 (14:20 +0100)
commit66fab92316c913c781b2a274900d9d1e6a206ed0
tree74e7160f8934b083412afff8ced00f645fbbaa55
parent0d8da77908df1aa3186b00113aab1b338cba9b07
Mark DTLS records as read when we have finished with them

The TLS code marks records as read when its finished using a record. The DTLS code did
not do that. However SSL_has_pending() relies on it. So we should make DTLS consistent.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6159)
ssl/record/rec_layer_d1.c
ssl/record/ssl3_record.c