dovecot: Don't assert-crash if client disconnects while IDLEing.

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 20 20:55:30 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/86e964111b1f
changeset: 6570:86e964111b1f
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 20 20:55:27 2007 +0300
description:
Don't assert-crash if client disconnects while IDLEing.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/imap/client.c |    3 ++-

diffs (13 lines):

diff -r b7d8695d864d -r 86e964111b1f src/imap/client.c
--- a/src/imap/client.c	Sat Oct 20 20:51:30 2007 +0300
+++ b/src/imap/client.c	Sat Oct 20 20:55:27 2007 +0300
@@ -449,7 +449,8 @@ void client_continue_pending_input(struc
 	i_assert(!client->handling_input);
 
 	if (client->disconnected) {
-		client_destroy(client, NULL);
+		if (!client->destroyed)
+			client_destroy(client, NULL);
 		*_client = NULL;
 		return;
 	}


More information about the dovecot-cvs mailing list