]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nftables: bogus check for netlink portID with table owner
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 4 Mar 2021 03:00:09 +0000 (04:00 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 4 Mar 2021 03:02:54 +0000 (04:02 +0100)
commit8a336240c636595694d9a4125ccf5ebdf8a57117
tree86190a7fbac1ccbae50b03c4c6a8e483711d6eed
parent322f98687b917c9c8835e0133500643fff595bb7
netfilter: nftables: bogus check for netlink portID with table owner

The existing branch checks for 0 != table->nlpid which always evaluates
true for tables that have an owner.

Fixes: 10e0d9638f20 ("netfilter: nftables: introduce table ownership")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c