You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2010/10/17 01:42:25 UTC
svn commit: r1023390 - /httpd/httpd/trunk/modules/cache/cache_storage.c
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;
}
}