Fixed packet stream destroy crashes when closing connections.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 10 Apr 2008 14:59:59 +0000 (17:59 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 10 Apr 2008 14:59:59 +0000 (17:59 +0300)
commit8b11d3c1627f1dc3c7966bb51901bcdcf1f8a9fb
treec3a65419cc1cba193652981b506e9db97dc71ecf
parent9b290d7cd0ad262dfc23ef2e5673a2e088d1619e
Fixed packet stream destroy crashes when closing connections.

Take a reference of the packet stream and then destroy it.  The final
reference is freed in the timeout callback.  Any operation in the mean
time will detect the stream is destroyed and won't do anything.
apps/silcd/server.c