]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Assert-crashfix
authorTimo Sirainen <tss@iki.fi>
Thu, 3 Sep 2015 19:12:14 +0000 (22:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 3 Sep 2015 19:12:14 +0000 (22:12 +0300)
Fixes:

Panic: file mail-storage.c: line 1897 (mailbox_save_alloc): assertion
failed: (!ctx->unfinished)

src/doveadm/dsync/dsync-mailbox-import.c

index 2df381ec4c5bb08999be2d488c0c160cde3aa3b6..0653616c89ffd1de6092c09c1b65eac1a9f24437 100644 (file)
@@ -2271,6 +2271,7 @@ dsync_mailbox_save_body(struct dsync_mailbox_importer *importer,
        if (!remote_mail) {
                /* the mail isn't remote yet. we were just trying to copy a
                   local mail to avoid downloading the remote mail. */
+               mailbox_save_cancel(&save_ctx);
                return FALSE;
        }
        if (mail->minimal_fields) {