# HG changeset patch # User Timo Sirainen # Date 1261592541 18000 # Node ID d1548d794f7213973964a1c9f6de60963a709b86 # Parent d00abdaf9df2c588b77e7de2760f0f720e5a2e08 *-login: Don't assert-crash if trying to proxy caused the connection to be killed. diff -r d00abdaf9df2 -r d1548d794f72 src/imap-login/client-authenticate.c --- a/src/imap-login/client-authenticate.c Wed Dec 23 13:02:55 2009 -0500 +++ b/src/imap-login/client-authenticate.c Wed Dec 23 13:22:21 2009 -0500 @@ -194,8 +194,10 @@ if (!success) return FALSE; if (imap_proxy_new(client, host, port, destuser, master_user, - pass, ssl_flags, proxy_timeout_msecs) < 0) - client_auth_failed(client, TRUE); + pass, ssl_flags, proxy_timeout_msecs) < 0) { + if (!client->destroyed) + client_auth_failed(client, TRUE); + } return TRUE; } diff -r d00abdaf9df2 -r d1548d794f72 src/pop3-login/client-authenticate.c --- a/src/pop3-login/client-authenticate.c Wed Dec 23 13:02:55 2009 -0500 +++ b/src/pop3-login/client-authenticate.c Wed Dec 23 13:22:21 2009 -0500 @@ -193,8 +193,10 @@ if (!success) return FALSE; if (pop3_proxy_new(client, host, port, destuser, master_user, - pass, ssl_flags, proxy_timeout_msecs) < 0) - client_auth_failed(client, TRUE); + pass, ssl_flags, proxy_timeout_msecs) < 0) { + if (!client->destroyed) + client_auth_failed(client, TRUE); + } return TRUE; }