]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: hno
authoramosjeffries <>
Sun, 24 Feb 2008 19:02:51 +0000 (19:02 +0000)
committeramosjeffries <>
Sun, 24 Feb 2008 19:02:51 +0000 (19:02 +0000)
Bug #2159: WCCPv2 assertion failure on Mask assignment

this patch aligns the code with the Squid-2 implementation.

src/wccp2.cc

index 98e214195b7cdd1a05f777d947323489f037f7eb..9a5c7ccfdf500474660658775aa68cad9c0215ad 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wccp2.cc,v 1.19 2007/11/15 16:47:35 wessels Exp $
+ * $Id: wccp2.cc,v 1.19.2.1 2008/02/24 12:02:51 amosjeffries Exp $
  *
  * DEBUG: section 80    WCCP Support
  * AUTHOR: Steven Wilton
@@ -1876,7 +1876,7 @@ wccp2AssignBuckets(void *voidnotused)
 
                     /* Update the value according the the "correct" formula */
 
-                    for (value++; (value & 0x1741) != value; value++) {
+                    for (; (value & 0x1741) != value; value++) {
                         assert(value <= 0x1741);
                     }