]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPVS]: Reverse valid ip_vs_ftp ports fix: port check approach
authorSimon Horman <horms@verge.net.au>
Thu, 28 Sep 2006 05:52:47 +0000 (22:52 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:02:55 +0000 (18:02 -0700)
This patch reverses 3f5af5b353ca36aca4f8a46e3da2172f669dbbbc as
a better fix was suggested by Patrick McHardy.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipvs/ip_vs_ftp.c

index 37fafb1fbcff378b09c0b67449bada0bb5fddc0c..4df215c51c715cdc1413b888327f115f22c48b75 100644 (file)
@@ -365,12 +365,6 @@ static int __init ip_vs_ftp_init(void)
        for (i=0; i<IP_VS_APP_MAX_PORTS; i++) {
                if (!ports[i])
                        continue;
-               if (ports[i] < 0 || ports[i] > 0xffff) {
-                       IP_VS_WARNING("ip_vs_ftp: Ignoring invalid "
-                                     "configuration port[%d] = %d\n",
-                                     i, ports[i]);
-                       continue;
-               }
                ret = register_ip_vs_app_inc(app, app->protocol, ports[i]);
                if (ret)
                        break;