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)
commitbd1777b3a88f98e223392221b330668458aac7f1
tree86190a7fbac1ccbae50b03c4c6a8e483711d6eed
parent2888b080d05c819205bbfe52c624a639f44c266a
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: 6001a930ce03 ("netfilter: nftables: introduce table ownership")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c