OSDN Git Service

netfilter: nf_tables: fix possible null-pointer dereference in object update
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Wed, 4 Sep 2019 12:29:07 +0000 (14:29 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Sep 2019 11:40:27 +0000 (13:40 +0200)
commitaa4095a156b56b00ca202d482b40d191ef5c54e8
treeecc33ed2faaa21413fdf5b94f4a1194b999ba169
parent85936e56e92375661cc15ee29223a40dcfc99455
netfilter: nf_tables: fix possible null-pointer dereference in object update

Not all objects have an update operation. If the object type doesn't
implement an update operation and the user tries to update it will hit
EOPNOTSUPP.

Fixes: d62d0ba97b58 ("netfilter: nf_tables: Introduce stateful object update operation")
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c