From 66a3e3b7cee5ddc1f6d40288d8154a051ee38bc2 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Wed, 18 Oct 2000 22:14:18 +0000 Subject: [PATCH] Sub-requests have to have a value for their request_config structure, or we'll seg-fault. This should set the sub-request's request_config structure to the same exact same structure as the main request is using. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86655 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_request.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 89f0bf56eb..86102cd67d 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -843,7 +843,11 @@ AP_DECLARE(request_rec *) ap_sub_req_method_uri(const char *method, rnew->request_time = r->request_time; rnew->connection = r->connection; rnew->server = r->server; + rnew->request_config = ap_create_request_config(rnew->pool); + ap_set_module_config(rnew->request_config, &core_module, + ap_get_module_config(r->request_config, &core_module)); + rnew->htaccess = r->htaccess; rnew->per_dir_config = r->server->lookup_defaults; rnew->allowed_methods = ap_make_method_list(rnew->pool, 2); @@ -941,7 +945,11 @@ AP_DECLARE(request_rec *) ap_sub_req_lookup_file(const char *new_file, rnew->request_time = r->request_time; rnew->connection = r->connection; rnew->server = r->server; + rnew->request_config = ap_create_request_config(rnew->pool); + ap_set_module_config(rnew->request_config, &core_module, + ap_get_module_config(r->request_config, &core_module)); + rnew->htaccess = r->htaccess; rnew->chunked = r->chunked; rnew->allowed_methods = ap_make_method_list(rnew->pool, 2); -- 2.50.1