httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1023390 - /httpd/httpd/trunk/modules/cache/cache_storage.c
Date Sat, 16 Oct 2010 23:42:25 GMT
Author: minfrin
Date: Sat Oct 16 23:42:25 2010
New Revision: 1023390

URL: http://svn.apache.org/viewvc?rev=1023390&view=rev
Log:
Fix the return values in the cache_select() function, we don't return APR
error codes in this case.

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

Modified: httpd/httpd/trunk/modules/cache/cache_storage.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_storage.c?rev=1023390&r1=1023389&r2=1023390&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/cache_storage.c (original)
+++ httpd/httpd/trunk/modules/cache/cache_storage.c Sat Oct 16 23:42:25 2010
@@ -206,13 +206,13 @@ int cache_select(cache_request_rec *cach
         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;
         }
     }
 



Mime
View raw message