From 737e7b2db697d39d53e30d176ab3539fc9d2bb25 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Wed, 13 Sep 2000 21:45:21 +0000 Subject: [PATCH] Fix a seg fault with sub requests. We must allocate space for the sub-requests allowed_methods array before we try to copy into it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86218 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_request.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/http/http_request.c b/modules/http/http_request.c index fdc49b404f..445ba5a531 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -863,6 +863,7 @@ API_EXPORT(request_rec *) ap_sub_req_lookup_file(const char *new_file, rnew->request_config = ap_create_request_config(rnew->pool); rnew->htaccess = r->htaccess; rnew->chunked = r->chunked; + 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); -- 2.40.0