[wt4hq] Win-Test for HQ package 2010

Laurent HAAS - F6FVY f6fvy at free.fr
Mon Jul 5 15:03:29 CEST 2010


Hi Mario

Tnx for your email

Mario Lorenz a écrit :

> tests I did over the weekend indicate one more bug in the Server code:
> If in tx_proc() for whatever error reason, the last connection is
> closed (with closeconn()), closeconn will return NULL.
> The break will only break the inner for loop, so the next statement
> is tun=tun->pNext, which in this case dereferences a nullpointer
> and causes a segfault/coredump. 
> (I am not really sure that is exactly what happens but
> at least I found a corresponding core file suggesting this)

Good catch ;-) !

Olivier wrote this code (and is a kind of "very busy" these days), but I 
guess a simple

if (tun)
   tun = tun->pNext;

instead should do the trick ? What do you think ?

Thanks and 73

Larry - F6FVY


More information about the Wt4hq mailing list