netfilter: ipset: Fix static checker warning in ip_set_core.c
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 15 Sep 2014 18:48:26 +0000 (20:48 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 15 Sep 2014 20:20:20 +0000 (22:20 +0200)
commit73e64e1813e9ea45885419d0fff1e628a6ab95d4
tree3621a18895f093bafe3626beb20166cc032aa98d
parent0bbe80e571c7b866afd92a98edd32a969467a7a9
netfilter: ipset: Fix static checker warning in ip_set_core.c

Dan Carpenter reported the following static checker warning:

        net/netfilter/ipset/ip_set_core.c:1414 call_ad()
        error: 'nlh->nlmsg_len' from user is not capped properly

The payload size is limited now by the max size of size_t.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_core.c