]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 31 Jul 2010 14:32:14 +0000 (08:32 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 31 Jul 2010 14:32:14 +0000 (08:32 -0600)
Fix: The bytes 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/access_log.cc

index e4a66f6e8f7a368089d902703b4a019ec2fd1ca7..84e86bd5010c4c1ca50d6fca93521f5b7dd9dfc1 100644 (file)
@@ -839,13 +839,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: