[dovecot-cvs] dovecot/src/lib-index mailbox-list-index.c,1.4,1.5
tss at dovecot.org
tss at dovecot.org
Thu Mar 15 03:34:47 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv30417
Modified Files:
mailbox-list-index.c
Log Message:
Crashfix
Index: mailbox-list-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mailbox-list-index.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mailbox-list-index.c 28 Dec 2006 16:28:30 -0000 1.4
+++ mailbox-list-index.c 15 Mar 2007 01:34:44 -0000 1.5
@@ -465,7 +465,7 @@
const char *p, *hier_name;
int ret;
- if (dir_offset == index->mmap_size &&
+ if ((dir_offset == index->mmap_size || index->mmap_size == 0) &&
dir_offset == sizeof(*index->hdr)) {
/* root doesn't exist in the file yet */
return 0;
More information about the dovecot-cvs
mailing list