diff options
author | jamesm <jamesm> | 2000-06-09 09:22:38 +0000 |
---|---|---|
committer | jamesm <jamesm> | 2000-06-09 09:22:38 +0000 |
commit | 1751971133ed2faf570d02a454d2bf6e4c56c82b (patch) | |
tree | 6013d71645db4aeb30ccc87577e664e254128f00 /ip6tables.c | |
parent | 1a5ab13d9bc2592b93fe5ee01c7b62f1efba279e (diff) |
M.P.Anand Babu's fix for iptables rename chain without new chain bug.
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ip6tables.c b/ip6tables.c index b75b7d4..27e7187 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1555,6 +1555,11 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_handle_t *handle) if (optind < argc && argv[optind][0] != '-' && argv[optind][0] != '!') newname = argv[optind++]; + else + exit_error(PARAMETER_PROBLEM, + "-%c requires old-chain-name and " + "new-chain-name", + cmd2char(CMD_RENAME_CHAIN)); break; case 'P': |