Ensure |rwstate| is set correctly on BIO_flush
authorMatt Caswell <matt@openssl.org>
Wed, 4 Nov 2015 11:20:50 +0000 (11:20 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 10 Dec 2015 12:50:56 +0000 (12:50 +0000)
commitf612bdb34252c3eae4808dd3e1360d0f0a3666bc
tree568295fb32cc8964e1f06743b66f9dcbfbab93ca
parent4a534243183498ee1a5b3fb19f4be8a0bf731ca7
Ensure |rwstate| is set correctly on BIO_flush

A BIO_flush call in the DTLS code was not correctly setting the |rwstate|
variable to SSL_WRITING. This means that SSL_get_error() will not return
SSL_ERROR_WANT_WRITE in the event of an IO retry.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 67f60be8c9ae5ff3129fcd6238baf124385a41d8)
ssl/d1_both.c