From: Markus Valentin Date: Wed, 12 Jan 2022 14:09:16 +0000 (+0100) Subject: lib-storage: index_save_context_free() - Add assertion on non-NULL ctx->dest_mail X-Git-Tag: 2.3.19~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd9923ed993c2a3252536730f7d622700da0ef09;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: index_save_context_free() - Add assertion on non-NULL ctx->dest_mail --- diff --git a/src/lib-storage/index/index-storage.c b/src/lib-storage/index/index-storage.c index 543620594f..e1998b0bd6 100644 --- a/src/lib-storage/index/index-storage.c +++ b/src/lib-storage/index/index-storage.c @@ -955,6 +955,8 @@ bool index_storage_is_inconsistent(struct mailbox *box) void index_save_context_free(struct mail_save_context *ctx) { + i_assert(ctx->dest_mail != NULL); + index_mail_save_finish(ctx); if (ctx->data.keywords != NULL) mailbox_keywords_unref(&ctx->data.keywords);