dovecot-2.2: imapc: Fixed crash when FETCH command immediately f...

dovecot at dovecot.org dovecot at dovecot.org
Thu Mar 20 14:15:47 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/610c79565959
changeset: 17165:610c79565959
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Mar 20 16:15:24 2014 +0200
description:
imapc: Fixed crash when FETCH command immediately failed due to connection error.

diffstat:

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

diffs (15 lines):

diff -r 87e6c9706756 -r 610c79565959 src/lib-storage/index/imapc/imapc-mail-fetch.c
--- a/src/lib-storage/index/imapc/imapc-mail-fetch.c	Wed Mar 19 15:42:42 2014 +0200
+++ b/src/lib-storage/index/imapc/imapc-mail-fetch.c	Thu Mar 20 16:15:24 2014 +0200
@@ -385,9 +385,10 @@
 				       imapc_mail_fetch_callback,
 				       mbox->pending_fetch_request);
 	imapc_command_set_flags(cmd, IMAPC_COMMAND_FLAG_RETRIABLE);
+	array_append(&mbox->fetch_requests, &mbox->pending_fetch_request, 1);
+
 	imapc_command_send(cmd, str_c(mbox->pending_fetch_cmd));
 
-	array_append(&mbox->fetch_requests, &mbox->pending_fetch_request, 1);
 	mbox->pending_fetch_request = NULL;
 	timeout_remove(&mbox->to_pending_fetch_send);
 	str_truncate(mbox->pending_fetch_cmd, 0);


More information about the dovecot-cvs mailing list