]> granicus.if.org Git - apache/commitdiff
Fix a seg fault with sub requests. We must allocate space for the
authorRyan Bloom <rbb@apache.org>
Wed, 13 Sep 2000 21:45:21 +0000 (21:45 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 13 Sep 2000 21:45:21 +0000 (21:45 +0000)
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

index fdc49b404fd60d5e0246f54a0be2a7d5716383d6..445ba5a531dc238b194575a22e5ed852b7774fff 100644 (file)
@@ -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);