[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.155,1.156

cras at dovecot.org cras at dovecot.org
Mon Oct 25 22:41:52 EEST 2004


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

Modified Files:
	mail-index.c 
Log Message:
Don't crash if mmap_disable=yes and index is broken.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- mail-index.c	25 Oct 2004 17:42:51 -0000	1.155
+++ mail-index.c	25 Oct 2004 19:41:50 -0000	1.156
@@ -603,7 +603,7 @@
 			return ret;
 		}
 	} else {
-		if (mail_index_read_map_with_retry(index, map) < 0) {
+		if (mail_index_read_map_with_retry(index, map) <= 0) {
 			mail_index_unmap_forced(index, map);
 			return -1;
 		}



More information about the dovecot-cvs mailing list