]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix another seg fault with allow_methods and sub requests
authorRyan Bloom <rbb@apache.org>
Wed, 13 Sep 2000 22:24:46 +0000 (22:24 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 13 Sep 2000 22:24:46 +0000 (22:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86219 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_request.c

index 445ba5a531dc238b194575a22e5ed852b7774fff..db742e7dce80e258c75a9cb5d32bf355c1343f32 100644 (file)
@@ -772,6 +772,10 @@ API_EXPORT(request_rec *) ap_sub_req_method_uri(const char *method,
     rnew->request_config = ap_create_request_config(rnew->pool);
     rnew->htaccess       = r->htaccess;
     rnew->per_dir_config = r->server->lookup_defaults;
+    rnew->allowed_methods = ap_make_method_list(rnew->pool, 2);
+
+    /* make a copy of the allowed-methods list */
+    ap_copy_method_list(rnew->allowed_methods, r->allowed_methods);
 
     /* start with the same set of output filters */
     rnew->filters = r->filters;