dovecot-2.2: imap: Fixed assert-crash on FETCH error disconnecti...

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 15 09:35:54 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/3ff9acd8080e
changeset: 14902:3ff9acd8080e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 15 09:35:21 2012 +0300
description:
imap: Fixed assert-crash on FETCH error disconnections.

diffstat:

 src/imap/imap-client.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 3d53028cbe9c -r 3ff9acd8080e src/imap/imap-client.c
--- a/src/imap/imap-client.c	Tue Aug 14 10:02:14 2012 +0300
+++ b/src/imap/imap-client.c	Wed Aug 15 09:35:21 2012 +0300
@@ -574,7 +574,10 @@
 
 	*_cmd = NULL;
 
-	i_assert(client->output_cmd_lock != cmd);
+	if (client->output_cmd_lock == cmd) {
+		i_assert(client->disconnected);
+		client->output_cmd_lock = NULL;
+	}
 
 	/* reset input idle time because command output might have taken a
 	   long time and we don't want to disconnect client immediately then */


More information about the dovecot-cvs mailing list