remote_auth_timeout_cb(gpointer data)
{
    cib_client_t *client = data;

    client->remote_auth_timeout = 0;

    if (client->remote_auth == TRUE) {
        return FALSE;
    }

    mainloop_del_fd(client->remote);
    crm_err("Remote client authentication timed out");

    return FALSE;
}
Weaknesses in this category are related to improper management of system resources.