1
0
forked from bip/bip

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.
This commit is contained in:
Arnaud Cornet 2018-12-25 10:13:54 -05:00
parent 0044826084
commit c9cc64f2e1

View File

@ -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);
}