summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorM.P.Anand Babu <ab@fig.org>2000-06-09 09:22:38 +0000
committerJames Morris <jmorris@namei.org>2000-06-09 09:22:38 +0000
commitc9f20d3e25a09bee55f32733e9150316f5d5e89f (patch)
tree6013d71645db4aeb30ccc87577e664e254128f00 /iptables.c
parentee604b7e36f2678bf086e145a184e2403c72389a (diff)
M.P.Anand Babu's fix for iptables rename chain without new chain bug.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables.c b/iptables.c
index 6c77d133..bb5a1c58 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1623,6 +1623,11 @@ int do_command(int argc, char *argv[], char **table, iptc_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':