dovecot-1.2: imap: Don't crash on SELECT .. QRESYNC if it didn't...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 9 22:26:24 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/352eab3d6ade
changeset: 9420:352eab3d6ade
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 09 15:26:18 2009 -0400
description:
imap: Don't crash on SELECT .. QRESYNC if it didn't give seq-uid map.

diffstat:

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

diffs (13 lines):

diff -r e20921f71bd0 -r 352eab3d6ade src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c	Thu Oct 08 11:21:26 2009 -0400
+++ b/src/imap/imap-fetch.c	Fri Oct 09 15:26:18 2009 -0400
@@ -259,7 +259,8 @@ static int get_expunges_fallback(struct 
 	if (mailbox_search_deinit(&search_ctx) < 0)
 		ret = -1;
 
-	if (ret == 0 && ctx->qresync_sample_seqset != NULL)
+	if (ret == 0 && ctx->qresync_sample_seqset != NULL &&
+	    array_is_created(ctx->qresync_sample_seqset))
 		expunges_drop_known(ctx, mail, expunges);
 
 	mail_free(&mail);


More information about the dovecot-cvs mailing list