netfilter: nf_tables: don't assume chain stats are set when jumplabel is set
authorFlorian Westphal <fw@strlen.de>
Sat, 5 May 2018 22:47:20 +0000 (00:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2018 12:15:33 +0000 (14:15 +0200)
commit009240940e84c1c089af88b454f7e804a4c5bd1b
tree3fdc62f78daf56610d35ee6139b6433b93a8aa9b
parenta44f6d82a471aa52fe218e43105fbe3c458fc5a6
netfilter: nf_tables: don't assume chain stats are set when jumplabel is set

nft_chain_stats_replace() and all other spots assume ->stats can be
NULL, but nft_update_chain_stats does not.  It must do this check,
just because the jump label is set doesn't mean all basechains have stats
assigned.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c