]> granicus.if.org Git - apache/commitdiff
Fix a bug where if the cache quick handler is switched off, and the CACHE
authorGraham Leggett <minfrin@apache.org>
Fri, 4 Jun 2010 00:09:51 +0000 (00:09 +0000)
committerGraham Leggett <minfrin@apache.org>
Fri, 4 Jun 2010 00:09:51 +0000 (00:09 +0000)
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

index 9e1ac99ed0e8e4c1823c99376429309bfd021c84..a57f3cf0187718fe109ee06e44262266b54087af 100644 (file)
@@ -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;
 }