summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/cache/mod_disk_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/cache/mod_disk_cache.c b/modules/cache/mod_disk_cache.c
index 31c85fe1c1..c67112dd35 100644
--- a/modules/cache/mod_disk_cache.c
+++ b/modules/cache/mod_disk_cache.c
@@ -1082,8 +1082,8 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
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",