]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Move new chain check to where it belongs
authorPhil Sutter <phil@nwl.cc>
Wed, 13 Feb 2019 10:11:24 +0000 (11:11 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Feb 2019 19:08:31 +0000 (20:08 +0100)
commitc19fa5833a0bc0eb787799634bd26dea91fcdca1
treee5c017586c4053207922100d75eb1348edd07db9
parenteed2c6af53ef69df493e8ace70e59096b2149917
xtables: Move new chain check to where it belongs

Instead of checking chain existence in xtables.c, do it in
nft_chain_user_add() and reuse predefined error message.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c
iptables/xtables.c