summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-arp-standalone.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-08 22:17:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-09 12:42:08 +0200
commit3d2e3c1838bf728e6b88912a77b0f9d8535f011b (patch)
tree7a0946ca7b8dad1bd27f8b649f96b5209f094850 /iptables/xtables-arp-standalone.c
parent3f37696b7ce5bea29e742f7d8efc33dd82fb878c (diff)
arptables-compat: fix missing error reporting
# arptables-compat -D INPUT -j ACCEPT arptables: Bad rule (does a matching rule exist in that chain?) Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-arp-standalone.c')
-rw-r--r--iptables/xtables-arp-standalone.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/xtables-arp-standalone.c b/iptables/xtables-arp-standalone.c
index 23b6bcb4..182dd9f3 100644
--- a/iptables/xtables-arp-standalone.c
+++ b/iptables/xtables-arp-standalone.c
@@ -84,5 +84,10 @@ int xtables_arp_main(int argc, char *argv[])
if (ret)
ret = nft_commit(&h);
+ nft_fini(&h);
+
+ if (!ret)
+ fprintf(stderr, "arptables: %s\n", nft_strerror(errno));
+
exit(!ret);
}