dovecot-1.1: dbox rebuild: Don't crash if nothing was previously...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jan 21 19:29:53 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/0a8a3fa5a036
changeset: 8112:0a8a3fa5a036
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jan 21 12:29:49 2009 -0500
description:
dbox rebuild: Don't crash if nothing was previously in cache.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/dbox/dbox-sync-rebuild.c |    2 +-

diffs (12 lines):

diff -r 989789b2afd8 -r 0a8a3fa5a036 src/lib-storage/index/dbox/dbox-sync-rebuild.c
--- a/src/lib-storage/index/dbox/dbox-sync-rebuild.c	Tue Jan 20 17:37:13 2009 -0500
+++ b/src/lib-storage/index/dbox/dbox-sync-rebuild.c	Wed Jan 21 12:29:49 2009 -0500
@@ -62,7 +62,7 @@ dbox_sync_index_copy_cache(struct dbox_s
 		return;
 
 	if (!mail_index_ext_get_reset_id(ctx->view, map, ctx->cache_ext_id,
-					 &reset_id))
+					 &reset_id) || reset_id == 0)
 		return;
 
 	if (!ctx->cache_used) {


More information about the dovecot-cvs mailing list