dovecot-2.1: imapc: Crashfix on error conditions.

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 8 11:30:48 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/94e32772e593
changeset: 13827:94e32772e593
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 08 11:30:42 2011 +0200
description:
imapc: Crashfix on error conditions.

diffstat:

 src/lib-storage/index/imapc/imapc-storage.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ddfe3a0f75e6 -r 94e32772e593 src/lib-storage/index/imapc/imapc-storage.c
--- a/src/lib-storage/index/imapc/imapc-storage.c	Thu Dec 08 09:30:14 2011 +0200
+++ b/src/lib-storage/index/imapc/imapc-storage.c	Thu Dec 08 11:30:42 2011 +0200
@@ -684,7 +684,8 @@
 	struct imapc_mailbox *mbox = context;
 
 	imapc_noop_callback(reply, mbox->box.storage);
-	imapc_client_mailbox_idle(mbox->client_box);
+	if (mbox->client_box != NULL)
+		imapc_client_mailbox_idle(mbox->client_box);
 }
 
 static void imapc_notify_changes(struct mailbox *box)


More information about the dovecot-cvs mailing list