mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
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
This commit is contained in:
@@ -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->request_config = ap_create_request_config(rnew->pool);
|
||||||
rnew->htaccess = r->htaccess;
|
rnew->htaccess = r->htaccess;
|
||||||
rnew->chunked = r->chunked;
|
rnew->chunked = r->chunked;
|
||||||
|
rnew->allowed_methods = ap_make_method_list(rnew->pool, 2);
|
||||||
|
|
||||||
/* make a copy of the allowed-methods list */
|
/* make a copy of the allowed-methods list */
|
||||||
ap_copy_method_list(rnew->allowed_methods, r->allowed_methods);
|
ap_copy_method_list(rnew->allowed_methods, r->allowed_methods);
|
||||||
|
Reference in New Issue
Block a user