]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2159: WCCPv2 assertion failure on Mask assignment
authorhno <>
Thu, 27 Dec 2007 04:58:02 +0000 (04:58 +0000)
committerhno <>
Thu, 27 Dec 2007 04:58:02 +0000 (04:58 +0000)
this patch aligns the code with the Squid-2 implementation.

src/wccp2.cc

index f579d910ad74b59971b80174126908e6882b7ddf..3eb84bee3ac9b62a6a4ffccce7f1a1a555ae4d0b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wccp2.cc,v 1.20 2007/12/14 23:11:48 amosjeffries Exp $
+ * $Id: wccp2.cc,v 1.21 2007/12/26 21:58:02 hno Exp $
  *
  * DEBUG: section 80    WCCP Support
  * AUTHOR: Steven Wilton
@@ -1889,7 +1889,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);
                     }