1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

We have to create the core_request_config structure in the core on internal

redirects.  If this isn't done, we'll seg-fault during the AP_DEBUG_ASSERT
that makes sure getline didn't leave any droppings.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86650 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Bloom
2000-10-18 18:50:11 +00:00
parent b34f8526d2
commit 1af6430ebf

View File

@@ -1394,6 +1394,7 @@ static apr_table_t *rename_original_env(apr_pool_t *p, apr_table_t *t)
static request_rec *internal_internal_redirect(const char *new_uri,
request_rec *r) {
int access_status;
core_request_config *req_cfg;
request_rec *new = (request_rec *) apr_pcalloc(r->pool,
sizeof(request_rec));
@@ -1411,7 +1412,12 @@ static request_rec *internal_internal_redirect(const char *new_uri,
new->method_number = r->method_number;
new->allowed_methods = ap_make_method_list(new->pool, 2);
ap_parse_uri(new, new_uri);
new->request_config = ap_create_request_config(r->pool);
req_cfg = apr_pcalloc(r->pool, sizeof(core_request_config));
req_cfg->bb = ap_brigade_create(r->pool);
ap_set_module_config(r->request_config, &core_module, req_cfg);
new->per_dir_config = r->server->lookup_defaults;
new->prev = r;