summaryrefslogtreecommitdiffstats
path: root/iptables/nft.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-05-31 16:21:04 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:31 +0100
commitf041efe3c26e3059df1ac8f1775f77423d4be5f6 (patch)
tree1f68e55846ddcaa198b14e69088e1144d116f9fa /iptables/nft.c
parent55bca4aa60c0027a39e635b2f05274058a2dcf2f (diff)
xtables-restore: output the same error message that iptables-restore uses
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.c')
-rw-r--r--iptables/nft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index ca56d0ed..7dad2464 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2641,7 +2641,7 @@ static int nft_action(struct nft_handle *h, int type)
if (errno != EEXIST)
perror("mnl-talk:nft_commit");
}
- return ret;
+ return ret == 0 ? 1 : 0;
}
int nft_commit(struct nft_handle *h)