You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2009/12/01 09:59:42 UTC

svn commit: r885694 - /httpd/httpd/trunk/modules/cache/mod_disk_cache.c

Author: wrowe
Date: Tue Dec  1 08:59:41 2009
New Revision: 885694

URL: http://svn.apache.org/viewvc?rev=885694&view=rev
Log:
Revert nonsense I introduced in r885689; solve cl test correctly

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

Modified: httpd/httpd/trunk/modules/cache/mod_disk_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_disk_cache.c?rev=885694&r1=885693&r2=885694&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_disk_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_disk_cache.c Tue Dec  1 08:59:41 2009
@@ -1082,8 +1082,8 @@
             file_cache_errorcleanup(dobj, r);
             return APR_EGENERAL;
         }
-        if (cl_header > 0) {
-            apr_size_t cl = (apr_size_t) apr_atoi64(cl_header);
+        if (cl_header) {
+            apr_off_t cl = (apr_off_t) apr_atoi64(cl_header);
             if ((errno == 0) && (dobj->file_size != cl)) {
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                              "disk_cache: URL %s didn't receive complete response, not caching",