[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-update.c, 1.42, 1.43

cras at dovecot.org cras at dovecot.org
Wed Jan 11 22:20:54 EET 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv21659/lib-storage/index/mbox

Modified Files:
	mbox-sync-update.c 
Log Message:
Added new assert was wrong in last assert-crashfix, so we still kept
crashing to the new assert..



Index: mbox-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-update.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- mbox-sync-update.c	8 Jan 2006 21:29:37 -0000	1.42
+++ mbox-sync-update.c	11 Jan 2006 20:20:52 -0000	1.43
@@ -45,8 +45,9 @@
 		}
 
 		if (ctx->mail.space > 0) {
-			i_assert(ctx->mail.offset + ctx->mail.space <= pos ||
-				 ctx->mail.offset > pos + have);
+			i_assert(ctx->mail.offset + ctx->mail.space <=
+				 ctx->hdr_offset + pos ||
+				 ctx->mail.offset > ctx->hdr_offset + pos + have);
 			if (ctx->mail.offset > pos) {
 				/* free space offset moves */
 				ctx->mail.offset += diff;



More information about the dovecot-cvs mailing list