From: Graham Leggett Date: Fri, 4 Jun 2010 00:09:51 +0000 (+0000) Subject: Fix a bug where if the cache quick handler is switched off, and the CACHE X-Git-Tag: 2.3.6~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e958275d9907f9103743aaedfb256ed1f5449ca;p=apache Fix a bug where if the cache quick handler is switched off, and the CACHE filter is manually added by the admin, but caching has not been enabled for the URL space, an attempt is made to remove the CACHE_SAVE filter instead of the CACHE filter. This fix makes the code work like the comment above the code, the comment being correct. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951220 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 9e1ac99ed0..a57f3cf018 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -315,8 +315,8 @@ static int cache_replace_filter(ap_filter_t *next, ap_filter_rec_t *from, ap_remove_output_filter(fto); return 1; } - if (fto) { - ap_remove_output_filter(fto); + if (ffrom) { + ap_remove_output_filter(ffrom); } return 0; }