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:
parent
0044826084
commit
c9cc64f2e1
@ -2512,7 +2512,8 @@ prot_err:
|
|||||||
if (linel)
|
if (linel)
|
||||||
list_free(linel);
|
list_free(linel);
|
||||||
if (lc) {
|
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);
|
list_remove(&bip->connecting_client_list, lc);
|
||||||
irc_close(lc);
|
irc_close(lc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user