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>
Tue, 15 May 2018 13:08:31 +0000 (14:08 +0100)
commit7171f71ef10eb079322bbe99332f411a14f03891
tree655e92b80b8e87f1c29a930b2f774ba8405aedbe
parentf1e92861c30e91139407e65fffd0af76ef48fd34
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/6160)
ssl/record/rec_layer_d1.c
ssl/record/ssl3_record.c