diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org> | 2005-06-13 01:06:10 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org> | 2005-06-13 01:06:10 +0000 |
commit | d3877bb01f3201577ed23795f8e9ae24a68449b6 (patch) | |
tree | 9197d3bf95bd1841b230ee6e1e7e0cc1c964421b | |
parent | 9701574d40fe25cadffce5cb02d2377a96ec4b46 (diff) |
Chain name should not start with '!' (Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>)
-rw-r--r-- | ip6tables.c | 4 | ||||
-rw-r--r-- | iptables.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ip6tables.c b/ip6tables.c index 11d8cd1..fd38a2d 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1822,10 +1822,10 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_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 " @@ -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 " |