]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: fix a missing check of nla_parse
authorAditya Pakki <pakki001@umn.edu>
Tue, 8 Jan 2019 20:00:33 +0000 (21:00 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 8 Jan 2019 20:00:33 +0000 (21:00 +0100)
commit8eaaf16019a0bde44959654faa93c417f1973d9c
tree0990ea930c38476d8636b63a737c7c1c792c5747
parent04f0977dca6e67ec8c3848900878726378a43806
netfilter: ipset: fix a missing check of nla_parse

When nla_parse fails, we should not use the results (the first
argument). The fix checks if it fails, and if so, returns its error code
upstream.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/net/netfilter/ipset/ip_set_core.c