[dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.80.2.6, 1.80.2.7

tss at dovecot.org tss at dovecot.org
Tue Jan 16 22:00:19 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv1239

Modified Files:
      Tag: branch_1_0
	mail-cache.c 
Log Message:
Make sure file_seq isn't zero in cache file header.



Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.80.2.6
retrieving revision 1.80.2.7
diff -u -d -r1.80.2.6 -r1.80.2.7
--- mail-cache.c	28 Dec 2006 16:27:41 -0000	1.80.2.6
+++ mail-cache.c	16 Jan 2007 22:00:16 -0000	1.80.2.7
@@ -138,6 +138,10 @@
 		mail_cache_set_corrupted(cache, "indexid changed");
 		return FALSE;
 	}
+	if (cache->hdr->file_seq == 0) {
+		mail_cache_set_corrupted(cache, "file_seq is 0");
+		return FALSE;
+	}
 
 	/* only check the header if we're locked */
 	if (!cache->locked)



More information about the dovecot-cvs mailing list