[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
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.56,1.57
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-status.c, 1.38, 1.39 index-storage.c, 1.94, 1.95 index-storage.h, 1.108, 1.109 index-transaction.c, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.56,1.57
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-status.c, 1.38, 1.39 index-storage.c, 1.94, 1.95 index-storage.h, 1.108, 1.109 index-transaction.c, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list