From: Ruediger Pluem Date: Fri, 30 Nov 2007 07:23:55 +0000 (+0000) Subject: * Use the correct pool when adding connection level filters. X-Git-Tag: 2.3.0~1195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18f91519dfd8eee31c3e33b1f36b729983e44264;p=thirdparty%2Fapache%2Fhttpd.git * Use the correct pool when adding connection level filters. Submitted by: jorton Reviewed by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599711 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_filter.c b/server/util_filter.c index 1b9e84112c0..636b601d9fa 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -279,7 +279,7 @@ static ap_filter_t *add_any_filter_handle(ap_filter_rec_t *frec, void *ctx, ap_filter_t **p_filters, ap_filter_t **c_filters) { - apr_pool_t* p = r ? r->pool : c->pool; + apr_pool_t* p = frec->ftype < AP_FTYPE_CONNECTION && r ? r->pool : c->pool; ap_filter_t *f = apr_palloc(p, sizeof(*f)); ap_filter_t **outf;