From 2e958275d9907f9103743aaedfb256ed1f5449ca Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Fri, 4 Jun 2010 00:09:51 +0000 Subject: [PATCH] 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 --- modules/cache/mod_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.50.1