Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e44fd82c authored by Simon Horman's avatar Simon Horman Committed by David S. Miller
Browse files

[IPVS]: Reverse valid ip_vs_ftp ports fix: port check approach



This patch reverses 3f5af5b3 as
a better fix was suggested by Patrick McHardy.

Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent febac9b9
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;