]> jfr.im git - solanum.git/commitdiff
authd: fix race on the ircd side.
authorElizabeth Myers <redacted>
Sat, 2 Apr 2016 08:51:54 +0000 (03:51 -0500)
committerElizabeth Myers <redacted>
Sat, 2 Apr 2016 08:51:54 +0000 (03:51 -0500)
The client may have already gone away, so if we can't find the local
cid, don't try to restart authd.

ircd/authd.c

index 1efc55a58510f69597c20694c08377702f2f79cf..033430709f37cf078753a7603455f2c167c5251a 100644 (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;
 }