dovecot-2.2: mdbox: Crashfix for storage rebuild

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 10 07:32:00 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/42a88f557662
changeset: 15622:42a88f557662
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 10 07:31:51 2013 +0200
description:
mdbox: Crashfix for storage rebuild

diffstat:

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

diffs (12 lines):

diff -r 29e5702b23ab -r 42a88f557662 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Thu Jan 10 06:52:37 2013 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Thu Jan 10 07:31:51 2013 +0200
@@ -432,7 +432,7 @@
 			   still try to look it up using map_uid. */
 			rec = map_uid == 0 ? NULL :
 				rebuild_lookup_map_uid(ctx, map_uid);
-			map_uid = rec->map_uid;
+			map_uid = rec == NULL ? 0 : rec->map_uid;
 		} else if (!guid_hash_have_map_uid(&rec, map_uid)) {
 			/* message's GUID and map_uid point to different
 			   physical messages. assume that GUID is correct and


More information about the dovecot-cvs mailing list