commit - 98e9467c85b1a81fbbcebf2be21b3a0d83fb60c4
commit + 52ccba5d1e8cd2e648cf3c14598332bde6b9910d
blob - cfe616f5f33ac9845c9cfbdf92392f183bfdc9a8
blob + ad8c0506905eca3fdaf5787914be740b7a4b9e21
--- src/ngircd/irc.c
+++ src/ngircd/irc.c
IRC_KillClient(CLIENT *Client, CLIENT *From, const char *Nick, const char *Reason)
{
const char *msg;
- CONN_ID my_conn, conn;
+ CONN_ID my_conn = NONE, conn;
CLIENT *c;
+
+ assert(Nick != NULL);
+ assert(Reason != NULL);
/* Do we know such a client in the network? */
c = Client_Search(Nick);
}
/* Save ID of this connection */
- my_conn = Client_Conn(Client);
+ if (Client)
+ my_conn = Client_Conn(Client);
/* Kill the client NOW:
* - Close the local connection (if there is one),