From: hno <> Date: Thu, 27 Dec 2007 04:58:02 +0000 (+0000) Subject: Bug #2159: WCCPv2 assertion failure on Mask assignment X-Git-Tag: BASIC_TPROXY4~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9366bab70dae14bae9371825a9646e8fd088c251;p=thirdparty%2Fsquid.git Bug #2159: WCCPv2 assertion failure on Mask assignment this patch aligns the code with the Squid-2 implementation. --- diff --git a/src/wccp2.cc b/src/wccp2.cc index f579d910ad..3eb84bee3a 100644 --- a/src/wccp2.cc +++ b/src/wccp2.cc @@ -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); }