[dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.80.2.8, 1.80.2.9

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


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

Modified Files:
      Tag: branch_1_0
	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.80.2.8
retrieving revision 1.80.2.9
diff -u -d -r1.80.2.8 -r1.80.2.9
--- mail-cache.c	16 Feb 2007 10:54:57 -0000	1.80.2.8
+++ mail-cache.c	15 Mar 2007 01:50:32 -0000	1.80.2.9
@@ -209,6 +209,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