dovecot-2.1: mdbox: Don't assert-crash when having to open mail ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 22 00:12:58 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/8132fb8ee3eb
changeset: 13744:8132fb8ee3eb
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 22 00:12:53 2011 +0200
description:
mdbox: Don't assert-crash when having to open mail file during specific copying situations.

diffstat:

 src/lib-storage/index/dbox-multi/mdbox-save.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5bc3ea6ebbed -r 8132fb8ee3eb src/lib-storage/index/dbox-multi/mdbox-save.c
--- a/src/lib-storage/index/dbox-multi/mdbox-save.c	Mon Nov 21 23:26:46 2011 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-save.c	Tue Nov 22 00:12:53 2011 +0200
@@ -58,7 +58,7 @@
 	rec = data;
 
 	if (mdbox_map_lookup(ctx->mbox->storage->map, rec->map_uid,
-			     &file_id, offset_r) <= 0)
+			     &file_id, offset_r) < 0)
 		i_unreached();
 
 	return mdbox_file_init(ctx->mbox->storage, file_id);


More information about the dovecot-cvs mailing list