From 61d1befa2abb203e46c190925c71d06b5d32d340 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 2 Apr 2016 03:51:54 -0500 Subject: [PATCH] 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. --- ircd/authd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ircd/authd.c b/ircd/authd.c index 1efc55a58..033430709 100644 --- a/ircd/authd.c +++ b/ircd/authd.c @@ -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; }