]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
NFCT: fix crash in polling mode if used by two stacks
authorEric Leblond <eric@regit.org>
Wed, 18 Jul 2012 20:56:04 +0000 (20:56 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Jul 2012 08:08:31 +0000 (10:08 +0200)
commit8ec1ed82572d7e509ce14c476df81241293a770c
tree91c0129efa492c71b7634323f821caa11d193be9
parent38444668368fa499c6f788ae259338d2a4c02324
NFCT: fix crash in polling mode if used by two stacks

The polling timer initialisation code was put in the configurator
code. It was then created for all instances. But only first one has
a valid NFCT handle. This was resulting in a crash.
This patch moves the timer initialisation in the constructor which
is called only once on the main NFCT instance.

Signed-off-by: Eric Leblond <eric@regit.org>
Reported-by: Gomathivinayagam Muthuvinayagam <sankarmail@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
input/flow/ulogd_inpflow_NFCT.c