From 3d2e3c1838bf728e6b88912a77b0f9d8535f011b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 8 Oct 2014 22:17:50 +0200 Subject: 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 --- iptables/xtables-arp-standalone.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iptables/xtables-arp-standalone.c') 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); } -- cgit v1.2.3