[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.92,1.93
tss at dovecot.org
tss at dovecot.org
Tue Jan 16 22:00:22 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv1207
Modified Files:
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.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- mail-cache.c 28 Dec 2006 16:28:28 -0000 1.92
+++ mail-cache.c 16 Jan 2007 22:00:18 -0000 1.93
@@ -144,6 +144,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