Follow up patches split the parser from the cache calculation. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- iptables/tests/shell/testcases/ip6tables/0004-return-codes_0 | 2 +- iptables/tests/shell/testcases/iptables/0004-return-codes_0 | 2 +- iptables/xtables.c | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/iptables/tests/shell/testcases/ip6tables/0004-return-codes_0 b/iptables/tests/shell/testcases/ip6tables/0004-return-codes_0 index f023b7915498..3124cfd86317 100755 --- a/iptables/tests/shell/testcases/ip6tables/0004-return-codes_0 +++ b/iptables/tests/shell/testcases/ip6tables/0004-return-codes_0 @@ -31,7 +31,7 @@ cmd 1 ip6tables -A noexist -j ACCEPT cmd 0 ip6tables -C INPUT -j ACCEPT cmd 1 ip6tables -C FORWARD -j ACCEPT cmd 1 ip6tables -C nonexist -j ACCEPT -cmd 2 ip6tables -C INPUT -j foobar +cmd 1 ip6tables -C INPUT -j foobar cmd 2 ip6tables -C INPUT -m foobar -j ACCEPT cmd 3 ip6tables -t foobar -C INPUT -j ACCEPT diff --git a/iptables/tests/shell/testcases/iptables/0004-return-codes_0 b/iptables/tests/shell/testcases/iptables/0004-return-codes_0 index ce02e0bcb128..136eab83a679 100755 --- a/iptables/tests/shell/testcases/iptables/0004-return-codes_0 +++ b/iptables/tests/shell/testcases/iptables/0004-return-codes_0 @@ -75,7 +75,7 @@ cmd 2 "$ENOMTH" iptables -C INPUT -m foobar -j ACCEPT # messages of those don't match, but iptables-nft ones are actually nicer. #cmd 2 "$ENOTGT" iptables -C INPUT -j foobar #cmd 3 "$ENOTBL" iptables -t foobar -C INPUT -j ACCEPT -cmd 2 "" iptables -C INPUT -j foobar +cmd 1 "" iptables -C INPUT -j foobar cmd 3 "" iptables -t foobar -C INPUT -j ACCEPT exit $global_rc diff --git a/iptables/xtables.c b/iptables/xtables.c index 8f9dc628d002..260fb97b3b11 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -1031,11 +1031,6 @@ void do_parse(struct nft_handle *h, int argc, char *argv[], opt2char(OPT_VIANAMEIN), p->chain); } - - if (!p->xlate && !cs->target && strlen(cs->jumpto) > 0 && - !nft_chain_exists(h, p->table, cs->jumpto)) - xtables_error(PARAMETER_PROBLEM, - "Chain '%s' does not exist", cs->jumpto); } } -- 2.11.0