Properly handle duplicated messages from the next epoch
authorMatt Caswell <matt@openssl.org>
Tue, 16 Oct 2018 16:08:11 +0000 (17:08 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 26 Oct 2018 13:21:19 +0000 (14:21 +0100)
commit840facc3ccab481e1a0bc2cb6e7740e362df7422
treee10706da1ff6c942a09688237e2244b653aefc5b
parent21311777ad8b8c2f2fb8eb7a4f9618ceae1e043d
Properly handle duplicated messages from the next epoch

Since 1fb9fdc30 we may attempt to buffer a record from the next epoch
that has already been buffered. Prior to that this never occurred.

We simply ignore a failure to buffer a duplicated record.

Fixes #6902

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7414)
ssl/record/rec_layer_d1.c