From: Timo Sirainen Date: Fri, 9 Oct 2009 19:26:18 +0000 (-0400) Subject: imap: Don't crash on SELECT .. QRESYNC if it didn't give seq-uid map. X-Git-Tag: 2.0.alpha1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=268ec7af1817cb37c8081e4ece0f473cf98399fd;p=thirdparty%2Fdovecot%2Fcore.git imap: Don't crash on SELECT .. QRESYNC if it didn't give seq-uid map. --HG-- branch : HEAD --- diff --git a/src/imap/imap-fetch.c b/src/imap/imap-fetch.c index 87db6fd3d4..db379777a4 100644 --- a/src/imap/imap-fetch.c +++ b/src/imap/imap-fetch.c @@ -244,7 +244,8 @@ static int get_expunges_fallback(struct imap_fetch_context *ctx, 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);