From 62d58df5ca6374a75afa63ed4fef9a5f7d654dbe Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 5 Oct 2005 23:37:53 +0000 Subject: [PATCH] Pay close attention to core_create_req() ... and note that not one other member of the r->vars is initialized herein. Move this initialization elsewhere. (If this is the 'default' - it really aught to be the zero value, for that matter). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@295141 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 5 ----- server/protocol.c | 5 +++++ server/request.c | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/server/core.c b/server/core.c index 150f361e95..e6b9169ac9 100644 --- a/server/core.c +++ b/server/core.c @@ -3767,11 +3767,6 @@ static int core_create_req(request_rec *r) ap_set_module_config(r->request_config, &core_module, req_cfg); - /* Begin by presuming any module can make its own path_info assumptions, - * until some module interjects and changes the value. - */ - r->used_path_info = AP_REQ_DEFAULT_PATH_INFO; - return OK; } diff --git a/server/protocol.c b/server/protocol.c index 4efe8c44a9..327adb63b8 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -869,6 +869,11 @@ request_rec *ap_read_request(conn_rec *conn) r->status = HTTP_REQUEST_TIME_OUT; /* Until we get a request */ r->the_request = NULL; + /* Begin by presuming any module can make its own path_info assumptions, + * until some module interjects and changes the value. + */ + r->used_path_info = AP_REQ_DEFAULT_PATH_INFO; + tmp_bb = apr_brigade_create(r->pool, r->connection->bucket_alloc); /* Get the request... */ diff --git a/server/request.c b/server/request.c index c807dd0d6c..31270eeb30 100644 --- a/server/request.c +++ b/server/request.c @@ -1531,6 +1531,11 @@ static request_rec *make_sub_request(const request_rec *r, */ ap_run_create_request(rnew); + /* Begin by presuming any module can make its own path_info assumptions, + * until some module interjects and changes the value. + */ + rnew->used_path_info = AP_REQ_DEFAULT_PATH_INFO; + return rnew; } -- 2.40.0