summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>2005-06-13 01:06:10 +0000
committerPatrick McHardy <kaber@trash.net>2005-06-13 01:06:10 +0000
commit8d8c8ea5a6150694e7d6fdabd094de15d01bd74b (patch)
tree9197d3bf95bd1841b230ee6e1e7e0cc1c964421b /iptables.c
parent595e493649a97a738dd84699f65207735b9567e7 (diff)
Chain name should not start with '!' (Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>)
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables.c b/iptables.c
index 33ee337e..f8250cef 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1925,10 +1925,10 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
break;
case 'N':
- if (optarg && *optarg == '-')
+ if (optarg && (*optarg == '-' || *optarg == '!'))
exit_error(PARAMETER_PROBLEM,
"chain name not allowed to start "
- "with `-'\n");
+ "with `%c'\n", *optarg);
if (find_target(optarg, TRY_LOAD))
exit_error(PARAMETER_PROBLEM,
"chain name may not clash "