summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-16 15:50:51 +0100
committerPatrick McHardy <kaber@trash.net>2009-03-16 15:50:51 +0100
commit626ba8fbac9156a94a80be46ffd2f2ce9e4e89a0 (patch)
tree326a726e86a7242e64b1eda51e4b422140b1c0c5 /net
parentb1e93a68ca41e7e73766f95ba32ca05cf9052e15 (diff)
downloadlinux-626ba8fbac9156a94a80be46ffd2f2ce9e4e89a0.tar.gz
linux-626ba8fbac9156a94a80be46ffd2f2ce9e4e89a0.tar.bz2
linux-626ba8fbac9156a94a80be46ffd2f2ce9e4e89a0.zip
netfilter: ctnetlink: fix crash during expectation creation
This patch fixes a possible crash due to the missing initialization of the expectation class when nf_ct_expect_related() is called. Reported-by: BORBELY Zoltan <bozo@andrews.hu> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index cb78aa00399e..ed6d873ad384 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -1780,6 +1780,7 @@ ctnetlink_create_expect(struct nlattr *cda[], u_int8_t u3, u32 pid, int report)
goto out;
}
+ exp->class = 0;
exp->expectfn = NULL;
exp->flags = 0;
exp->master = ct;