Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9420:352eab3d6ade HEAD
imap: Don't crash on SELECT .. QRESYNC if it didn't give seq-uid map.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 09 Oct 2009 15:26:18 -0400 |
parents | e20921f71bd0 |
children | 51329696ecf5 |
files | src/imap/imap-fetch.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);