dovecot: If STARTTLS failed because max. number of connections f...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 1 13:13:46 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/fc7c4af3e870
changeset: 6153:fc7c4af3e870
user: Timo Sirainen <tss at iki.fi>
date: Wed Aug 01 13:13:41 2007 +0300
description:
If STARTTLS failed because max. number of connections for process was
reached, don't assert-crash.
diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
src/imap-login/client.c | 2 +-
src/pop3-login/client.c | 2 +-
diffs (24 lines):
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 @@ static void client_start_tls(struct imap
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 @@ static void client_start_tls(struct pop3
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,
More information about the dovecot-cvs
mailing list