httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r951220 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Fri, 04 Jun 2010 00:09:52 GMT
Author: minfrin
Date: Fri Jun  4 00:09:51 2010
New Revision: 951220

URL: http://svn.apache.org/viewvc?rev=951220&view=rev
Log:
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.

Modified:
    httpd/httpd/trunk/modules/cache/mod_cache.c

Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?rev=951220&r1=951219&r2=951220&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Fri Jun  4 00:09:51 2010
@@ -315,8 +315,8 @@ static int cache_replace_filter(ap_filte
         ap_remove_output_filter(fto);
         return 1;
     }
-    if (fto) {
-        ap_remove_output_filter(fto);
+    if (ffrom) {
+        ap_remove_output_filter(ffrom);
     }
     return 0;
 }



Mime
View raw message