# iptables-compat -X iptables: No chain/target/match by that name. While it should display no error message at all. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- iptables/nft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/nft.c b/iptables/nft.c index bbea5f21c398..10befea5200b 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1547,7 +1547,7 @@ next: err: /* chain not found */ - if (deleted_ctr == 0) { + if (chain != NULL && deleted_ctr == 0) { ret = -1; errno = ENOENT; } -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html