summaryrefslogtreecommitdiffstats
path: root/modules/cache/mod_cache.c
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2010-06-04 02:09:51 +0200
committerGraham Leggett <minfrin@apache.org>2010-06-04 02:09:51 +0200
commit2e958275d9907f9103743aaedfb256ed1f5449ca (patch)
tree5fdf5971a1ab164c7a4b0a153f61557e502cc187 /modules/cache/mod_cache.c
parentMove logic to find module by name into new function find_module(). (diff)
downloadapache2-2e958275d9907f9103743aaedfb256ed1f5449ca.tar.xz
apache2-2e958275d9907f9103743aaedfb256ed1f5449ca.zip
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
Diffstat (limited to '')
-rw-r--r--modules/cache/mod_cache.c4
1 files 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;
}