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:28:18 +0000 (14:28 +0100)
commit86fe421dcf4161eb682841435d42dd92ca49adeb
tree0672ce611ad3bcac43ee252fa7da59ad0441bf60
parentf3f7f1a826617af80a92f58d494ec2c8348251a5
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)

(cherry picked from commit 840facc3ccab481e1a0bc2cb6e7740e362df7422)
ssl/record/rec_layer_d1.c