From: Justin Erenkrantz Date: Mon, 4 Mar 2002 09:20:03 +0000 (+0000) Subject: Ensure that net_time filter isn't added on subreqs - we assume that it is X-Git-Tag: 2.0.33~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3c07a160ba4f6a560f31bf8cdc0cd0aa39cd908;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/core.c b/server/core.c index 3b173cdc606..73c8d06e98b 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. */