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:47:49 +0000 (12:47 +0000)
commit50053969e39ae055d2aca7a6a8bf39a3e20c1931
tree256f370b7d1edfe8434ff67e851038ef7da31a99
parent01b5c1239b5d80bb50c17a3a8673bbfc183d25d4
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