From 6f176c2b9a9d1a73a746ee7bfe5d70a9d5be02b9 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Mon, 4 Mar 2002 09:20:03 +0000 Subject: [PATCH] Ensure that net_time filter isn't added on subreqs - we assume that it is added on !r->main requests. This led to infinite loop/SEGV when dealing with anything that created a subreq. (I don't think core_create_req is a good place for adding this filter.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93694 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/core.c b/server/core.c index 3b173cdc60..73c8d06e98 100644 --- a/server/core.c +++ b/server/core.c @@ -3772,12 +3772,11 @@ static int core_create_req(request_rec *r) } else { req_cfg->bb = apr_brigade_create(r->pool); + ap_add_input_filter_handle(ap_net_time_filter_handle, + NULL, r, r->connection); } ap_set_module_config(r->request_config, &core_module, req_cfg); - ap_add_input_filter_handle(ap_net_time_filter_handle, - NULL, r, r->connection); - /* Begin by presuming any module can make it's own path_info assumptions, * until some module interjects and changes the value. */ -- 2.40.0