[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.81,1.82

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


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

Modified Files:
	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.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- mail-cache.c	30 May 2006 08:36:11 -0000	1.81
+++ mail-cache.c	8 Jun 2006 18:28:07 -0000	1.82
@@ -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