]> asedeno.scripts.mit.edu Git - linux.git/commit
netfilter: ipset: fix a missing check of nla_parse
authorAditya Pakki <pakki001@umn.edu>
Mon, 10 Jun 2019 10:47:37 +0000 (12:47 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 10 Jun 2019 10:47:37 +0000 (12:47 +0200)
commitf4f5748bfec94cf418e49bf05f0c81a1b9ebc950
treee4cddf11a3a97e856a2f13fa6fbf18b22f225513
parentf0cb839084efdf99328bed393f12f2e5c258ce8d
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>
net/netfilter/ipset/ip_set_core.c