summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-15 13:51:19 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-15 13:51:19 +0000
commitede55c57b4e4a30c83f2eab9dd25e7ab7f98d379 (patch)
treec7031d9fa6fd060a9cb34c70feb942c24ab54cba /ip6tables.c
parent6cd49745931f42cfe2280bf78e483035c3c5e2e6 (diff)
Properly initialize revision for ip6tables targets
Also resync error handling with iptables.
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ip6tables.c b/ip6tables.c
index 8bcce0e..bc65012 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -1393,9 +1393,16 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_handle_t *handle)
target->t = fw_calloc(1, size);
target->t->u.target_size = size;
strcpy(target->t->u.user.name, jumpto);
+ set_revision(target->t->u.user.name,
+ target->revision);
if (target->init != NULL)
target->init(target->t);
- opts = merge_options(opts, target->extra_opts, &target->option_offset);
+ opts = merge_options(opts,
+ target->extra_opts,
+ &target->option_offset);
+ if (opts == NULL)
+ exit_error(OTHER_PROBLEM,
+ "can't alloc memory!");
}
break;