dovecot-2.2: mdbox: Crashfix for storage rebuild

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 16 18:57:46 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/2def25f07ca6
changeset: 15812:2def25f07ca6
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 08 16:42:21 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 26fa19903dcd -r 2def25f07ca6 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Fri Feb 08 15:05:40 2013 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Fri Feb 08 16:42:21 2013 +0200
@@ -430,7 +430,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