]> granicus.if.org Git - apache/commitdiff
mod_cache: Fix the moving of the CACHE filter, which erroneously
authorGraham Leggett <minfrin@apache.org>
Mon, 15 Aug 2011 20:09:38 +0000 (20:09 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 15 Aug 2011 20:09:38 +0000 (20:09 +0000)
stood down if the original filter was not added by configuration.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1157976 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/cache/mod_cache.c

diff --git a/CHANGES b/CHANGES
index 3ac4a45ec82158387e84a326657b76589316a075..b05bf213fefbf3c2bf8fc9ca9f441737d9e82530 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.3.15
 
+  *) mod_cache: Fix the moving of the CACHE filter, which erroneously
+     stood down if the original filter was not added by configuration.
+     [Graham Leggett]
+
   *) mod_ssl: improve certificate error logging. PR 47408. [Kaspar Brand]
 
   *) mod_authz_groupfile: Increase length limit of lines in the group file to
index 40daced9eb29eaf22cc0f997a60d9ae66a24a3bb..96b25e63317aed8d70a09de8ae86635cff205e6b 100644 (file)
@@ -320,10 +320,10 @@ static int cache_replace_filter(ap_filter_t *next, ap_filter_rec_t *from,
         ap_filter_rec_t *to, ap_filter_rec_t *stop) {
     ap_filter_t *ffrom = NULL, *fto = NULL;
     while (next && next->frec != stop) {
-        if (next->frec == from && !next->ctx) {
+        if (next->frec == from) {
             ffrom = next;
         }
-        if (next->frec == to && !next->ctx) {
+        if (next->frec == to) {
             fto = next;
         }
         next = next->next;