# HG changeset patch # User Timo Sirainen # Date 1255116378 14400 # Node ID 352eab3d6ade8f70e91849d0ecb0ec7747ae470c # Parent e20921f71bd0b7518091a4eb39b6d64359759703 imap: Don't crash on SELECT .. QRESYNC if it didn't give seq-uid map. 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 @@ 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);