Fix bug with SSL_read_early_data()
authorMatt Caswell <matt@openssl.org>
Wed, 29 Mar 2017 16:00:55 +0000 (17:00 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Mar 2017 08:09:21 +0000 (09:09 +0100)
commit39ef78210c7110600e083e7aec8fe7cda076522b
tree35e976540553dc2bfb56db97c8aff2b782ca6845
parent3fd5ece39b59d938d0cc84b8e5148d19044d15cf
Fix bug with SSL_read_early_data()

If read_ahead is set, or SSL_MODE_AUTO_RETRY is used then if
SSL_read_early_data() hits an EndOfEarlyData message then it will
immediately retry automatically, but this time read normal data instead
of early data!

Fixes #3041

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3077)
ssl/record/rec_layer_s3.c