summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_MASQUERADE.c
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>2003-10-30 06:36:49 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2003-10-30 06:36:49 +0000
commit1d095f8df6570b832b4c95d89e9a98541e85f4c7 (patch)
tree9a93201695cffd49aa540b177ae62bd65f182083 /extensions/libipt_MASQUERADE.c
parent11ce3320a0140425dac9e01c9d74f12e6afa1e58 (diff)
Fix invalid port number (Yasuyuki Kozakai)
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r--extensions/libipt_MASQUERADE.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c
index 2d4ee99d..c30e2faf 100644
--- a/extensions/libipt_MASQUERADE.c
+++ b/extensions/libipt_MASQUERADE.c
@@ -47,7 +47,7 @@ parse_ports(const char *arg, struct ip_nat_multi_range *mr)
mr->range[0].flags |= IP_NAT_RANGE_PROTO_SPECIFIED;
port = atoi(arg);
- if (port == 0 || port > 65535)
+ if (port <= 0 || port > 65535)
exit_error(PARAMETER_PROBLEM, "Port `%s' not valid\n", arg);
dash = strchr(arg, '-');