server_estab: don't try to send to a dead client
If the zlib setup fails the client will be exited, so don't send to it before checking this.
This commit is contained in:
parent
aaf6039eea
commit
65b9b1d06d
1 changed files with 2 additions and 1 deletions
|
@ -818,13 +818,14 @@ server_estab(struct Client *client_p)
|
|||
{
|
||||
start_zlib_session(client_p);
|
||||
}
|
||||
sendto_one(client_p, "SVINFO %d %d 0 :%ld", TS_CURRENT, TS_MIN, (long int)rb_current_time());
|
||||
|
||||
client_p->servptr = &me;
|
||||
|
||||
if(IsAnyDead(client_p))
|
||||
return CLIENT_EXITED;
|
||||
|
||||
sendto_one(client_p, "SVINFO %d %d 0 :%ld", TS_CURRENT, TS_MIN, (long int)rb_current_time());
|
||||
|
||||
SetServer(client_p);
|
||||
|
||||
rb_dlinkAdd(client_p, &client_p->lnode, &me.serv->servers);
|
||||
|
|
Loading…
Reference in a new issue