From c9cc64f2e1932339ddd08d39261331f6b6ceee71 Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Tue, 25 Dec 2018 10:13:54 -0500 Subject: [PATCH] Be more consistent when freeing incomplete clients. Cleanup IRC_TYPE_TRUST_CLIENT clients from the connecting client list the same way as IRC_TYPE_LOGING_CLIENT. --- src/irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index 0029d88..8163f32 100644 --- a/src/irc.c +++ b/src/irc.c @@ -2512,7 +2512,8 @@ prot_err: if (linel) list_free(linel); if (lc) { - if (TYPE(lc) == IRC_TYPE_LOGING_CLIENT) + if (TYPE(lc) == IRC_TYPE_LOGING_CLIENT || TYPE(lc) == + IRC_TYPE_TRUST_CLIENT) list_remove(&bip->connecting_client_list, lc); irc_close(lc); }