[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.94,1.95

tss at dovecot.org tss at dovecot.org
Thu Mar 15 03:50:38 EET 2007


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

Modified Files:
	mail-cache.c 
Log Message:
Error handling crashfix



Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- mail-cache.c	16 Feb 2007 10:55:00 -0000	1.94
+++ mail-cache.c	15 Mar 2007 01:50:35 -0000	1.95
@@ -215,6 +215,7 @@
 
 		if (offset == 0 && !mail_cache_verify_header(cache)) {
 			cache->need_compress_file_seq =
+				!MAIL_CACHE_IS_UNUSABLE(cache) &&
 				cache->hdr->file_seq != 0 ?
 				cache->hdr->file_seq : (uint32_t)-1;
 			return -1;



More information about the dovecot-cvs mailing list