Commit de561f95 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Fix ip_nat_ftp registration when no ports= arg

FTP NAT module doesn't register anything with no args.  Oops.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8ec9399f
...@@ -297,7 +297,7 @@ static int __init init(void) ...@@ -297,7 +297,7 @@ static int __init init(void)
char *tmpname; char *tmpname;
if (ports_c == 0) if (ports_c == 0)
ports[ports_c] = FTP_PORT; ports[ports_c++] = FTP_PORT;
for (i = 0; i < ports_c; i++) { for (i = 0; i < ports_c; i++) {
ftp[i].tuple.dst.protonum = IPPROTO_TCP; ftp[i].tuple.dst.protonum = IPPROTO_TCP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment