diff options
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ip6tables.c b/ip6tables.c index 11d8cd16..fd38a2db 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 " |