From: Jean-Frederic Clere Date: Wed, 15 Apr 2020 08:51:05 +0000 (+0000) Subject: PR64295 cannot override default Virtualhost's mod_reqtimeout X-Git-Tag: 2.5.0-alpha2-ci-test-only~1525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c643bc9810ee0a11889e912bed417e6e7919946b;p=thirdparty%2Fapache%2Fhttpd.git PR64295 cannot override default Virtualhost's mod_reqtimeout of course only body=n can work the headers have to parsed to get the virtualhost. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876540 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_reqtimeout.c b/modules/filters/mod_reqtimeout.c index 68d82d49e43..0ebd78a38e3 100644 --- a/modules/filters/mod_reqtimeout.c +++ b/modules/filters/mod_reqtimeout.c @@ -436,8 +436,8 @@ static int reqtimeout_before_body(request_rec *r) /* not configured for this connection */ return OK; } - cfg = ap_get_module_config(r->connection->base_server->module_config, - &reqtimeout_module); + cfg = ap_get_module_config(r->server->module_config, + &reqtimeout_module); AP_DEBUG_ASSERT(cfg != NULL); ccfg->type = "body";