]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Ensure that net_time filter isn't added on subreqs - we assume that it is
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 4 Mar 2002 09:20:03 +0000 (09:20 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 4 Mar 2002 09:20:03 +0000 (09:20 +0000)
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

index 3b173cdc606c5fe0b958424a8b9767c5207b76b8..73c8d06e98bb25b159e4464f3ee0a45eebf28be9 100644 (file)
@@ -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.
      */