[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.80.2.1,1.80.2.2

cras at dovecot.org cras at dovecot.org
Thu Jun 8 21:28:07 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	mail-cache.c 
Log Message:
Crashfix



Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.80.2.1
retrieving revision 1.80.2.2
diff -u -d -r1.80.2.1 -r1.80.2.2
--- mail-cache.c	28 May 2006 21:18:27 -0000	1.80.2.1
+++ mail-cache.c	8 Jun 2006 18:28:05 -0000	1.80.2.2
@@ -242,6 +242,7 @@
 
 	if (!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