Auto retry if we ditch records during shutdown
authorMatt Caswell <matt@openssl.org>
Wed, 23 May 2018 11:00:10 +0000 (12:00 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 27 Jun 2018 09:03:20 +0000 (10:03 +0100)
commit93f528f36eb9423c31b2d75669cea85da97f9633
treee399bfe7818854e787ddca88d2c6f81f653ac2dc
parentc7504aeb640a88949dfe3146f7e0f275f517464c
Auto retry if we ditch records during shutdown

If we've sent a close_notify and we're waiting for one back we drop
incoming records until we see the close_notify we're looking for. If
SSL_MODE_AUTO_RETRY is on, then we should immediately try and read the
next record.

Fixes #6262

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6340)
ssl/record/rec_layer_s3.c