[dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.230.2.28, 1.230.2.29
tss at dovecot.org
tss at dovecot.org
Mon Mar 26 19:42:08 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv3028
Modified Files:
Tag: branch_1_0
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.230.2.28
retrieving revision 1.230.2.29
diff -u -d -r1.230.2.28 -r1.230.2.29
--- mail-index.c 15 Mar 2007 12:04:38 -0000 1.230.2.28
+++ mail-index.c 26 Mar 2007 16:42:06 -0000 1.230.2.29
@@ -1885,7 +1885,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