]> 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 03:50:23 +0000 (15:50 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 03:50:23 +0000 (15:50 +1200)
Bug 2933: Verification of the max. port number for WCCP2 dynamic service

src/wccp2.cc

index 012be6dc77961a23bed434122781c096593baa1b..0f79cf3356172728c90e4d6ac7270f9d1713647d 100644 (file)
@@ -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);
     }