aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/ipvs/ip_vs_ftp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/ipvs/ip_vs_ftp.c b/net/ipv4/ipvs/ip_vs_ftp.c
index 347a66c05569..f0c553c038de 100644
--- a/net/ipv4/ipvs/ip_vs_ftp.c
+++ b/net/ipv4/ipvs/ip_vs_ftp.c
@@ -373,6 +373,12 @@ static int __init ip_vs_ftp_init(void)
373 for (i=0; i<IP_VS_APP_MAX_PORTS; i++) { 373 for (i=0; i<IP_VS_APP_MAX_PORTS; i++) {
374 if (!ports[i]) 374 if (!ports[i])
375 continue; 375 continue;
376 if (ports[i] < 0 || ports[i] > 0xffff) {
377 IP_VS_WARNING("ip_vs_ftp: Ignoring invalid "
378 "configuration port[%d] = %d\n",
379 i, ports[i]);
380 continue;
381 }
376 ret = register_ip_vs_app_inc(app, app->protocol, ports[i]); 382 ret = register_ip_vs_app_inc(app, app->protocol, ports[i]);
377 if (ret) 383 if (ret)
378 break; 384 break;