diff options
author | Phil Sutter <phil@nwl.cc> | 2018-10-23 16:59:14 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-23 17:24:05 +0200 |
commit | 682f39afe64305a820d3d8e186d0a6da893f0f35 (patch) | |
tree | 6e95b84f194dcb315466770d293008df40d05c43 /libiptc/libip4tc.c | |
parent | 90f7dc3c28a7381ea80aef0b1376d3dd5f1fbf4e (diff) |
xtables: Fix for spurious errors from iptables-translate
When aligning iptables-nft error messages with legacy ones, I missed
that translate tools shouldn't check for missing or duplicated chains.
Introduce a boolean in struct nft_xt_cmd_parse indicating we're "just"
translating and do_parse() should skip the checks.
Fixes: b6a06c1a215f8 ("xtables: Align return codes with legacy iptables")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libiptc/libip4tc.c')
0 files changed, 0 insertions, 0 deletions