[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.270,1.271

tss at dovecot.org tss at dovecot.org
Mon Mar 26 19:42:11 EEST 2007


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

Modified Files:
	mail-index.c 
Log Message:
If mail_index_move_to_memory() fails, make sure the future calls to it also
will fail.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.270
retrieving revision 1.271
diff -u -d -r1.270 -r1.271
--- mail-index.c	15 Mar 2007 12:04:45 -0000	1.270
+++ mail-index.c	26 Mar 2007 16:42:09 -0000	1.271
@@ -1899,7 +1899,7 @@
 	int ret = 0;
 
 	if (MAIL_INDEX_IS_IN_MEMORY(index))
-		return 0;
+		return index->map == NULL ? -1 : 0;
 
 	/* set the index as being into memory */
 	i_free_and_null(index->dir);



More information about the dovecot-cvs mailing list