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

src/wccp2.cc

index 1830145338d301f40e0897d5bd9991d814d880d0..9dfc27f03bf25aee7d8a053b6868e6209a506b95 100644 (file)
@@ -2160,7 +2160,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);
     }