#8 ipaudit segfaults in daemon mode

open
nobody
None
5
2003-12-07
2003-12-07
No

Hi,

My system:
MDK 9.2
libpcap0-0.7.2-3mdk
tcpdump-3.7.2-2mdk
ipaudit 0.95 (ipaudit-web-0.96b7)

Problem:
ipaudit segfaults when executing
./ipaudit -D 5 -o testfile eth0
After 1 period (so 5 seconds here, tried with 60 too)

I think the variable fork_m is wrongly initialized:
shouldn't it be TRUE for starting? (line 298).
Otherwise the program can never enter the while loop on
line 419,

Changing FALSE into TRUE on line 298 fixes the bug for
me, but I'm not sure this is completely correct... To be
honest, the program does not stop anymore, even when
not in daemon mode :-)
It stops counting packets, but it does not exit anymore....
However, I don't need this and I have not much time
left, so this fix is for you guys :-)

Thanks in advance,
Erwin

Discussion