Don't handle handshake messages when writing early data on server
authorMatt Caswell <matt@openssl.org>
Thu, 30 Mar 2017 16:35:55 +0000 (17:35 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 3 Apr 2017 18:07:29 +0000 (19:07 +0100)
commit59cebcf9f6cfd6c9703357c638aabb9c508c84bc
tree19197949fc954b01e73ecd99ae084b42331385cb
parenta8e75d56804540dfc588bad9cf1c412c675cab89
Don't handle handshake messages when writing early data on server

If we have received the EoED message but not yet had the CF then we are
"in init". Despite that we still want to write application data, so suppress
the "in init" check in ssl3_write_bytes() in that scenario.

Fixes #3041

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3091)
ssl/record/rec_layer_s3.c