]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: Don't finish dbox's ostream when mail is saved
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 31 Oct 2017 17:24:21 +0000 (19:24 +0200)
committerTimo Sirainen <tss@dovecot.fi>
Wed, 1 Nov 2017 00:22:19 +0000 (02:22 +0200)
Fixes assert-crash when saving mail when using zlib plugin.

src/lib-storage/index/dbox-common/dbox-file.c

index ffedcc4cadd131f62dbf4c60b7b6416f0b30aa37..461ea361825508708f9c37be657641336800ce53 100644 (file)
@@ -482,6 +482,7 @@ struct dbox_file_append_context *dbox_file_append_init(struct dbox_file *file)
        if (file->fd != -1) {
                ctx->output = o_stream_create_fd_file(file->fd, 0, FALSE);
                o_stream_set_name(ctx->output, file->cur_path);
+               o_stream_set_finish_via_child(ctx->output, FALSE);
                o_stream_cork(ctx->output);
        }
        return ctx;