]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug fix: The bytes sent/received to/from the ICAP server may not logged correctly...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 28 Jul 2010 17:51:26 +0000 (20:51 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 28 Jul 2010 17:51:26 +0000 (20:51 +0300)
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

index 9a7968930faa8db2bbc5ae6f0943b45645e1e0b3..62b436203fdbeba5f5cbb5a3c1c4009079b353ae 100644 (file)
@@ -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: