From: Timo Sirainen Date: Wed, 26 Jun 2013 16:47:40 +0000 (+0300) Subject: pop3c: Fixed mail saving to fail nicely, not assert-crash. X-Git-Tag: 2.2.5~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ee74d70bb758637e560d556c7240563967d22c8;p=thirdparty%2Fdovecot%2Fcore.git pop3c: Fixed mail saving to fail nicely, not assert-crash. --- diff --git a/src/lib-storage/index/pop3c/pop3c-storage.c b/src/lib-storage/index/pop3c/pop3c-storage.c index c3d4d97aec..e4411e3339 100644 --- a/src/lib-storage/index/pop3c/pop3c-storage.c +++ b/src/lib-storage/index/pop3c/pop3c-storage.c @@ -245,7 +245,7 @@ pop3c_save_alloc(struct mailbox_transaction_context *t) } static int -pop3c_save_begin(struct mail_save_context *ctx ATTR_UNUSED, +pop3c_save_begin(struct mail_save_context *ctx, struct istream *input ATTR_UNUSED) { mail_storage_set_error(ctx->transaction->box->storage, @@ -258,14 +258,16 @@ static int pop3c_save_continue(struct mail_save_context *ctx ATTR_UNUSED) return -1; } -static int pop3c_save_finish(struct mail_save_context *ctx ATTR_UNUSED) +static int pop3c_save_finish(struct mail_save_context *ctx) { + index_save_context_free(ctx); return -1; } static void -pop3c_save_cancel(struct mail_save_context *ctx ATTR_UNUSED) +pop3c_save_cancel(struct mail_save_context *ctx) { + index_save_context_free(ctx); } static bool pop3c_storage_is_inconsistent(struct mailbox *box)