1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

mod_ssl: SSL_smart_shutdown(): follow up to r1601184.

Use SSL_get_wbio() to comply with OPENSSL_NO_SSL_INTERN.
Stop SSL shutdown loop when flush fails.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1601274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yann Ylavic
2014-06-08 23:54:58 +00:00
parent ff0963e3f7
commit ec3eebef53

View File

@@ -142,7 +142,10 @@ int SSL_smart_shutdown(SSL *ssl)
/* Once the close notity is sent through the output filters,
* ensure it is flushed through the socket.
*/
BIO_flush(ssl->wbio);
if (BIO_flush(SSL_get_wbio(ssl)) <= 0) {
rc = -1;
break;
}
flush = 0;
}
if (rc != 0)