summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-standalone.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-04-12 11:51:38 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-13 20:06:16 +0200
commitce3c7808c2110d8b587cc5c54951232e50fe0636 (patch)
tree99e699c0ce7075964d99446dc937d77d933d5dc1 /iptables/xtables-standalone.c
parentcb151d5f1a54e333498c3bf7a9d0bd93341dd5b6 (diff)
nft: make nft_init self-contained
nft_init() should rollback all changes it made during init when something goes wrong, callers should NOT call nft_fini() on error. Note that this change is irrelevant at the moment, all users call exit() on failure. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-standalone.c')
-rw-r--r--iptables/xtables-standalone.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables/xtables-standalone.c b/iptables/xtables-standalone.c
index 139c477f..1a28c548 100644
--- a/iptables/xtables-standalone.c
+++ b/iptables/xtables-standalone.c
@@ -66,7 +66,6 @@ xtables_main(int family, const char *progname, int argc, char *argv[])
xtables_globals.program_name,
xtables_globals.program_version,
strerror(errno));
- nft_fini(&h);
exit(EXIT_FAILURE);
}