]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3685: Squid hangs in ClassCBucket::update
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 26 Nov 2012 11:13:08 +0000 (04:13 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 26 Nov 2012 11:13:08 +0000 (04:13 -0700)
src/delay_pools.cc

index 1f05e4dd49fb89b17a7ac971ddb8890b0c25f373..a979d94e35200709e99d7e57be1f4aa7d95e7943 100644 (file)
@@ -368,7 +368,7 @@ ClassCBucket::update (DelaySpec const &rate, int incr)
     /* If we aren't active, don't try to update us ! */
     assert (rate.restore_bps != -1);
 
-    for (unsigned char j = 0; j < individuals.size(); ++j)
+    for (unsigned int j = 0; j < individuals.size(); ++j)
         individuals.values[j].update (rate, incr);
 }