]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
QRESYNC crashfix
authorTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 11:36:44 +0000 (14:36 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 11:36:44 +0000 (14:36 +0300)
--HG--
branch : HEAD

src/imap/imap-fetch.c

index efe6ed5548efc0c1d951ab961fd00d1ae6e8ba67..e322cd48ac10ecbe3d5d565af7335e7d26ecdd44 100644 (file)
@@ -270,7 +270,7 @@ 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 && array_is_created(ctx->qresync_sample_seqset))
                expunges_drop_known(ctx, mail, expunges);
 
        mail_free(&mail);