From: Pablo Neira Ayuso Date: Wed, 8 Oct 2014 20:17:50 +0000 (+0200) Subject: arptables-compat: fix missing error reporting X-Git-Tag: v1.6.0~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d2e3c1838bf728e6b88912a77b0f9d8535f011b;p=thirdparty%2Fiptables.git 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 --- 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); }