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:
Elizabeth Myers 2016-04-02 03:51:54 -05:00
parent 5cbfed5407
commit 61d1befa2a

View file

@ -134,12 +134,8 @@ cid_to_client(uint32_t cid, bool delete)
else
client_p = rb_dictionary_retrieve(cid_clients, RB_UINT_TO_POINTER(cid));
if(client_p == NULL)
{
iwarn("authd sent us back a bad client ID: %ux", cid);
restart_authd();
return NULL;
}
/* If the client's not found, that's okay, it may have already gone away.
* --Elizafox */
return client_p;
}