dovecot-2.0: mdbox: More error handling fixing.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 1 18:30:56 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/7bd8464ef333
changeset: 11673:7bd8464ef333
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 01 16:30:53 2010 +0100
description:
mdbox: More error handling fixing.
diffstat:
src/lib-storage/index/dbox-multi/mdbox-save.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 16e0992583e2 -r 7bd8464ef333 src/lib-storage/index/dbox-multi/mdbox-save.c
--- a/src/lib-storage/index/dbox-multi/mdbox-save.c Thu Jul 01 16:28:15 2010 +0100
+++ b/src/lib-storage/index/dbox-multi/mdbox-save.c Thu Jul 01 16:30:53 2010 +0100
@@ -107,6 +107,9 @@
/* use the existing allocated structure */
ctx->ctx.failed = FALSE;
ctx->ctx.finished = FALSE;
+ ctx->ctx.cur_file = NULL;
+ ctx->ctx.dbox_output = NULL;
+ ctx->cur_file_append = NULL;
return &ctx->ctx.ctx;
}
@@ -141,8 +144,6 @@
if (mdbox_map_append_next(ctx->append_ctx, mail_size, 0,
&ctx->cur_file_append,
&ctx->ctx.dbox_output) < 0) {
- ctx->cur_file_append = NULL;
- ctx->ctx.dbox_output = NULL;
ctx->ctx.failed = TRUE;
return -1;
}
More information about the dovecot-cvs
mailing list