From 9a44271aa354582d42cb8d326807b5f0b05e0ae9 Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Wed, 28 Jul 2010 20:51:26 +0300 Subject: [PATCH] Bug fix: The bytes sent/received to/from the ICAP server may not logged correctly on 32bit systems A simple long int (doint/outint) used to log bytes sent/received to/from the ICAP server, ICAP requests with very large http objects will not logged correctly. Use int64_t (dooff/outoff) instead --- src/log/access_log.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/log/access_log.cc b/src/log/access_log.cc index 9a7968930f..62b436203f 100644 --- a/src/log/access_log.cc +++ b/src/log/access_log.cc @@ -874,13 +874,13 @@ accessLogCustom(AccessLogEntry * al, customlog * log) break; case LFT_ICAP_BYTES_SENT: - outint = al->icap.bytesSent; - doint = 1; + outoff = al->icap.bytesSent; + dooff = 1; break; case LFT_ICAP_BYTES_READ: - outint = al->icap.bytesRead; - doint = 1; + outoff = al->icap.bytesRead; + dooff = 1; break; case LFT_ICAP_REQ_HEADER: -- 2.47.2