[NETFILTER]: nf_conntrack_netbios_ns: fix uninitialized member in expectation ->helper is uninitialized in the expectation registered by the netbios_ns helper and it later copied to the expected connection, which causes invalid memory dereferences when trying to call the helper. Signed-off-by: Patrick McHardy --- commit fe6df90eb909a84593b6902e6e4f802687bc4564 tree 113ffbc5cd73dd3a5fe66bc24ba4747b2b5a4c6c parent fa0035e191e85a2ab31861df9e0a0273e60dc745 author Patrick McHardy Mon, 08 Jan 2007 23:30:35 +0100 committer Patrick McHardy Mon, 08 Jan 2007 23:30:35 +0100 net/netfilter/nf_conntrack_netbios_ns.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/net/netfilter/nf_conntrack_netbios_ns.c b/net/netfilter/nf_conntrack_netbios_ns.c index a5b234e..2a48efd 100644 --- a/net/netfilter/nf_conntrack_netbios_ns.c +++ b/net/netfilter/nf_conntrack_netbios_ns.c @@ -89,6 +89,7 @@ static int help(struct sk_buff **pskb, u exp->expectfn = NULL; exp->flags = NF_CT_EXPECT_PERMANENT; + exp->helper = NULL; nf_conntrack_expect_related(exp); nf_conntrack_expect_put(exp);