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

* modules/ssl/ssl_engine_io.c (ssl_io_filter_disable,

ssl_io_filter_error): Clear the SSL * pointer in the SSLConnRec too.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102819 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joe Orton
2004-02-29 00:29:20 +00:00
parent 6695669dd2
commit e878bf757b

View File

@@ -824,10 +824,11 @@ static apr_status_t ssl_filter_write(ap_filter_t *f,
sizeof(HTTP_ON_HTTPS_PORT) - 1, \ sizeof(HTTP_ON_HTTPS_PORT) - 1, \
alloc) alloc)
static void ssl_io_filter_disable(ap_filter_t *f) static void ssl_io_filter_disable(SSLConnRec *sslconn, ap_filter_t *f)
{ {
bio_filter_in_ctx_t *inctx = f->ctx; bio_filter_in_ctx_t *inctx = f->ctx;
SSL_free(inctx->ssl); SSL_free(inctx->ssl);
sslconn->ssl = NULL;
inctx->ssl = NULL; inctx->ssl = NULL;
inctx->filter_ctx->pssl = NULL; inctx->filter_ctx->pssl = NULL;
} }
@@ -849,7 +850,7 @@ static apr_status_t ssl_io_filter_error(ap_filter_t *f,
ssl_log_ssl_error(APLOG_MARK, APLOG_INFO, f->c->base_server); ssl_log_ssl_error(APLOG_MARK, APLOG_INFO, f->c->base_server);
sslconn->non_ssl_request = 1; sslconn->non_ssl_request = 1;
ssl_io_filter_disable(f); ssl_io_filter_disable(sslconn, f);
/* fake the request line */ /* fake the request line */
bucket = HTTP_ON_HTTPS_PORT_BUCKET(f->c->bucket_alloc); bucket = HTTP_ON_HTTPS_PORT_BUCKET(f->c->bucket_alloc);