Changes with Apache 2.0.50
+ *) mod_ssl: Fix potential segfaults when performing SSL shutdown from
+ a pool cleanup. PR 27945. [Joe Orton]
+
*) Add forensic logging module (mod_log_forensic).
[Ben Laurie]
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2004/04/14 14:45:28 $]
+Last modified at [$Date: 2004/04/15 19:41:38 $]
Release:
modules/experimental/util_ldap.c: r1.22, r1.24
+1: bnicholes, minfrin
- *) mod_ssl: Fix segfaults when doing shutdown from a cleanup.
- http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/ssl/ssl_engine_io.c?r1=1.121&r2=1.122
- +1: jorton, trawick, madhum
-
*) (re-)add support for RewriteRules in <Proxy> containers. PR 27985
modules/mappers/mod_rewrite.c: r1.254
+1: nd, trawick
static apr_status_t ssl_io_filter_cleanup(void *data)
{
- apr_status_t ret;
- ssl_filter_ctx_t *filter_ctx = (ssl_filter_ctx_t *)data;
- conn_rec *c;
+ ssl_filter_ctx_t *filter_ctx = data;
- if (!filter_ctx->pssl) {
- /* already been shutdown */
- return APR_SUCCESS;
- }
+ if (filter_ctx->pssl) {
+ conn_rec *c = (conn_rec *)SSL_get_app_data(filter_ctx->pssl);
+ SSLConnRec *sslconn = myConnConfig(c);
- c = (conn_rec *)SSL_get_app_data(filter_ctx->pssl);
- if ((ret = ssl_filter_io_shutdown(filter_ctx, c, 0)) != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_INFO, ret, NULL,
- "SSL filter error shutting down I/O");
- }
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, NULL,
+ "SSL connection destroyed without being closed");
- return ret;
+ SSL_free(filter_ctx->pssl);
+ sslconn->ssl = filter_ctx->pssl = NULL;
+ }
+
+ return APR_SUCCESS;
}
/*