From c9f20d3e25a09bee55f32733e9150316f5d5e89f Mon Sep 17 00:00:00 2001 From: "M.P.Anand Babu" Date: Fri, 9 Jun 2000 09:22:38 +0000 Subject: M.P.Anand Babu's fix for iptables rename chain without new chain bug. --- ip6tables.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ip6tables.c') diff --git a/ip6tables.c b/ip6tables.c index b75b7d4c..27e7187c 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': -- cgit v1.2.3