From: Amos Jeffries Date: Wed, 26 May 2010 03:50:23 +0000 (+1200) Subject: Author: Xavier Redon X-Git-Tag: SQUID_3_1_4~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1f68316ff16daca0770f55bb3d4cfccda3009c1;p=thirdparty%2Fsquid.git Author: Xavier Redon Bug 2933: Verification of the max. port number for WCCP2 dynamic service --- diff --git a/src/wccp2.cc b/src/wccp2.cc index 012be6dc77..0f79cf3356 100644 --- a/src/wccp2.cc +++ b/src/wccp2.cc @@ -2278,7 +2278,7 @@ parse_wccp2_service_ports(char *options, int portlist[]) port = strsep(&tmp2, ","); } - if (i == 8) { + if (i == WCCP2_NUMPORTS && port) { fatalf("parse_wccp2_service_ports: too many ports (maximum: 8) in list '%s'\n", options); }