]> granicus.if.org Git - apache/commitdiff
Sub-requests have to have a value for their request_config structure,
authorRyan Bloom <rbb@apache.org>
Wed, 18 Oct 2000 22:14:18 +0000 (22:14 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 18 Oct 2000 22:14:18 +0000 (22:14 +0000)
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

index 89f0bf56eb11b23a03a217256d4c90bba0559fe8..86102cd67d3e017570e69f49be1bea58c0423c95 100644 (file)
@@ -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);