]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Xavier Redon <xavier.redon@polytech-lille.fr>
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 May 2010 10:53:13 +0000 (22:53 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 May 2010 10:53:13 +0000 (22:53 +1200)
Bug 2933: Verification of the max. port number for WCCP2 dynamic service

src/wccp2.cc

index edb580d2ed61ac28072c9041f67fb822769fc949..d4769339d0d2583c96024a39476c097a70543a4b 100644 (file)
@@ -2279,7 +2279,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);
     }