]> arthur.barton.de Git - ngircd-alex.git/commit
Conn_Write(): Make sure there is a client when detecting its type
authorAlexander Barton <alex@barton.de>
Fri, 6 Jan 2012 02:26:24 +0000 (03:26 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 6 Jan 2012 02:26:24 +0000 (03:26 +0100)
commit05cc9bf9b064c7048f6b197462a686c5a9100798
treea4bcec3819a93507d32fd1691e6cd1b5e762ce79
parentcc06e1ff89ae4b7ffc8d95a8ab1d9b6787a5d142
Conn_Write(): Make sure there is a client when detecting its type

The assert(client != NULL) got triggered during our tests, so there is
an error path that resulted in the connection being still established
(sock >= 0) but the client structure already freed.

So Conn_Write() should handle it!
src/ngircd/conn.c