Mark a HelloRequest record as read if we ignore it
authorMatt Caswell <matt@openssl.org>
Mon, 9 Jan 2017 17:29:44 +0000 (17:29 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 10 Jan 2017 12:34:36 +0000 (12:34 +0000)
commitdc4667333bf5b712aa3c17b9713a6dda32d5feb1
tree38a09232c4296c26f45e40e0f5193328b384bb0d
parentdb2fed4443042db3e7921810d944cfd15d347d08
Mark a HelloRequest record as read if we ignore it

Otherwise the client will try to process it again. The second time around
it will try and move the record data into handshake fragment storage and
realise that there is no data left. At that point it marks it as read
anyway. However, it is a bug that we go around the loop a second time, so
we prevent that.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2200)
(cherry picked from commit 290a0419f0c13a30fb3a1d1a279125c8aeafd17e)
ssl/record/rec_layer_s3.c