NETFILTER: ctnetlink: check for status attribute existence on conntrack creation
commit9003d12b0a6ae9b19e5f60296c2dec37ff84f73b
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Mar 2007 20:18:36 +0000 (24 21:18 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sat, 24 Mar 2007 20:18:36 +0000 (24 21:18 +0100)
tree58a8f7fff5491bddd92042129f6d5b9a4aece2f6
parent1bed543f180803523b5baa5b10e9432ea2de5afb
NETFILTER: ctnetlink: check for status attribute existence on conntrack creation

Check that status flags are available in the netlink message received
to create a new conntrack.

Fixes a crash in ctnetlink_create_conntrack when the CTA_STATUS attribute
is not present.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/netfilter/ip_conntrack_netlink.c
net/netfilter/nf_conntrack_netlink.c