]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix the return values in the cache_select() function, we don't return APR
authorGraham Leggett <minfrin@apache.org>
Sat, 16 Oct 2010 23:42:25 +0000 (23:42 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 16 Oct 2010 23:42:25 +0000 (23:42 +0000)
error codes in this case.

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

modules/cache/cache_storage.c

index 457f63c70a25ea40e538a68dd1bdefa20a608d18..fc5cc465c67cf080a32ea34352340476178613eb 100644 (file)
@@ -206,13 +206,13 @@ int cache_select(cache_request_rec *cache, request_rec *r)
         ap_log_error(APLOG_MARK, APLOG_ERR, APR_EGENERAL, r->server,
                      "cache: No cache request information available for key"
                      " generation");
-        return APR_EGENERAL;
+        return DECLINED;
     }
 
     if (!cache->key) {
         rv = cache_generate_key(r, r->pool, &cache->key);
         if (rv != APR_SUCCESS) {
-            return rv;
+            return DECLINED;
         }
     }