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:44:07 +0000 (12:44 +0000)
commit67f60be8c9ae5ff3129fcd6238baf124385a41d8
tree525d03d7e615b7f7b6da3913d0e428e83b2fbadd
parent2ad226e88bee97847496e542d63c67997d5beda6
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>
ssl/statem/statem_dtls.c