authd: fix race on the ircd side.
The client may have already gone away, so if we can't find the local cid, don't try to restart authd.
This commit is contained in:
parent
5cbfed5407
commit
61d1befa2a
1 changed files with 2 additions and 6 deletions
|
@ -134,12 +134,8 @@ cid_to_client(uint32_t cid, bool delete)
|
||||||
else
|
else
|
||||||
client_p = rb_dictionary_retrieve(cid_clients, RB_UINT_TO_POINTER(cid));
|
client_p = rb_dictionary_retrieve(cid_clients, RB_UINT_TO_POINTER(cid));
|
||||||
|
|
||||||
if(client_p == NULL)
|
/* If the client's not found, that's okay, it may have already gone away.
|
||||||
{
|
* --Elizafox */
|
||||||
iwarn("authd sent us back a bad client ID: %ux", cid);
|
|
||||||
restart_authd();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return client_p;
|
return client_p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue