dovecot-2.2: pop3c: Fixed mail saving to fail nicely, not assert...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 26 19:47:49 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/42a5acba17e5
changeset: 16559:42a5acba17e5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 26 19:47:40 2013 +0300
description:
pop3c: Fixed mail saving to fail nicely, not assert-crash.

diffstat:

 src/lib-storage/index/pop3c/pop3c-storage.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r f3b9325509fd -r 42a5acba17e5 src/lib-storage/index/pop3c/pop3c-storage.c
--- a/src/lib-storage/index/pop3c/pop3c-storage.c	Wed Jun 26 19:33:38 2013 +0300
+++ b/src/lib-storage/index/pop3c/pop3c-storage.c	Wed Jun 26 19:47:40 2013 +0300
@@ -245,7 +245,7 @@
 }
 
 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 @@
 	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)


More information about the dovecot-cvs mailing list