# HG changeset patch # User Timo Sirainen # Date 1185963221 -10800 # Node ID fc7c4af3e870a26d272c558a85ae9d1cf3a9a3d4 # Parent 58144db523318852402efe7dee2f815f6ffe4470 If STARTTLS failed because max. number of connections for process was reached, don't assert-crash. diff -r 58144db52331 -r fc7c4af3e870 src/imap-login/client.c --- a/src/imap-login/client.c Wed Aug 01 12:57:59 2007 +0300 +++ b/src/imap-login/client.c Wed Aug 01 13:13:41 2007 +0300 @@ -119,7 +119,7 @@ client_ref(client); connection_queue_add(1); - if (!client_unref(client)) + if (!client_unref(client) || client->destroyed) return; fd_ssl = ssl_proxy_new(client->common.fd, &client->common.ip, diff -r 58144db52331 -r fc7c4af3e870 src/pop3-login/client.c --- a/src/pop3-login/client.c Wed Aug 01 12:57:59 2007 +0300 +++ b/src/pop3-login/client.c Wed Aug 01 13:13:41 2007 +0300 @@ -75,7 +75,7 @@ client_ref(client); connection_queue_add(1); - if (!client_unref(client)) + if (!client_unref(client) || client->destroyed) return; fd_ssl = ssl_proxy_new(client->common.fd, &client->common.ip,