dovecot-2.0: imap: Don't crash on SELECT .. QRESYNC if it didn't...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 9 22:26:40 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/0e27ce1b0c37
changeset: 10015:0e27ce1b0c37
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 e7f8f15f1c4c -r 0e27ce1b0c37 src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c Fri Oct 09 15:08:46 2009 -0400
+++ b/src/imap/imap-fetch.c Fri Oct 09 15:26:18 2009 -0400
@@ -244,7 +244,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