]> git.baikalelectronics.ru Git - kernel.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)
commit7214b5e77459ad7389a9ff9afefccfa554b1d3a7
treee4cddf11a3a97e856a2f13fa6fbf18b22f225513
parent11fb5d03dd182ad1a48006218e111ee2cccbc0d8
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