dovecot-1.0: If STARTTLS failed because max. number of connectio...

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 1 13:13:48 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/1022900fec05
changeset: 5360:1022900fec05
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 01 13:13:42 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 1860d1dcee4c -r 1022900fec05 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:42 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 1860d1dcee4c -r 1022900fec05 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:42 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