From: Ryan Bloom Date: Wed, 13 Sep 2000 22:24:46 +0000 (+0000) Subject: Fix another seg fault with allow_methods and sub requests X-Git-Tag: APACHE_2_0_ALPHA_7~166 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=651d8d2a9e9cf568bb59ae5d045a9d8a7043acb2;p=thirdparty%2Fapache%2Fhttpd.git Fix another seg fault with allow_methods and sub requests git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86219 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 445ba5a531d..db742e7dce8 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -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;