netfilter: nft_compat: check extension hook mask only if set
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 18 Jul 2017 18:03:05 +0000 (20:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Jul 2017 09:53:30 +0000 (11:53 +0200)
commitf7fb77fc12352d15180dc3c08ffba10573d5167d
tree8d99b058e03ae03ff922f51829923d4c429495ad
parent3840538ad384fb7891adeeaf36624f870c51fc0e
netfilter: nft_compat: check extension hook mask only if set

If the x_tables extension comes with no hook mask, skip this validation.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c