diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/http/mod-ssltunnel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/http/mod-ssltunnel.cpp b/sca-cpp/trunk/modules/http/mod-ssltunnel.cpp index d2c53b462e..edbc8f3b99 100644 --- a/sca-cpp/trunk/modules/http/mod-ssltunnel.cpp +++ b/sca-cpp/trunk/modules/http/mod-ssltunnel.cpp @@ -264,7 +264,9 @@ int processConnection(conn_rec *conn) { if (ap_get_module_config(conn->base_server->module_config, &mod_tuscany_ssltunnel) == NULL) return DECLINED; - gc_scoped_pool(conn->pool); + // Create a scoped memory pool + gc_scoped_pool pool; + const ServerConf& sc = httpd::serverConf<ServerConf>(conn->base_server, &mod_tuscany_ssltunnel); if (length(sc.pass) == 0) return DECLINED; @@ -287,6 +289,9 @@ int handler(request_rec* r) { if (strcmp(r->server->server_scheme, "https")) return DECLINED; + // Create a scoped memory pool + gc_scoped_pool pool(r->pool); + // Build the target URL debug(r->uri, "modssltunnel::handler::uri"); const list<value> path(pathValues(r->uri)); |