Skip to contentSkip to conversation

crash bug due to a missing initialization

DISCUSSION BORBELY Zoltan 2 participants 2 messages Mar 13, 2009 – Mar 16, 2009 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

In the ctnetlink_create_expect() function (in file nf_conntrack_netlink.c), you forgot to initialize exp->class, which causes a crash in the nf_ct_expect_related() function. I've just put an

    exp->class = 0;

line before the exp->expectfn = NULL line, and it has solved the problem.

Bye,
Bozo

#1 lore raw
Quoted 9 lines · BORBELY Zoltan

Hi,

In the ctnetlink_create_expect() function (in file nf_conntrack_netlink.c), you forgot to initialize exp->class, which causes a crash in the nf_ct_expect_related() function. I've just put an

    exp->class = 0;

line before the exp->expectfn = NULL line, and it has solved the problem.

Good catch.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers