[dovecot-cvs] dovecot/src/lib-storage/list index-mailbox-list-sync.c, 1.2, 1.3

tss at dovecot.org tss at dovecot.org
Sun Dec 10 12:59:47 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/list
In directory talvi:/tmp/cvs-serv1536/list

Modified Files:
	index-mailbox-list-sync.c 
Log Message:
Don't crash with indexes disabled.



Index: index-mailbox-list-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/list/index-mailbox-list-sync.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- index-mailbox-list-sync.c	6 Dec 2006 14:46:37 -0000	1.2
+++ index-mailbox-list-sync.c	10 Dec 2006 12:59:45 -0000	1.3
@@ -169,6 +169,11 @@
 	list = mail_storage_get_list(box->storage);
 	ilist = INDEX_LIST_CONTEXT(list);
 
+	if (ilist == NULL) {
+		/* indexing disabled */
+		return 0;
+	}
+
 	ret = mailbox_list_index_lookup(ilist->list_index, box->name, &uid);
 	if (ret <= 0)
 		return ret;



More information about the dovecot-cvs mailing list