dovecot-2.2: lib-storage: Fixed crash with listing shared mailbo...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 13 23:22:33 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/04ee59c96fc9
changeset: 16512:04ee59c96fc9
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 13 23:22:20 2013 +0300
description:
lib-storage: Fixed crash with listing shared mailboxes.
diffstat:
src/lib-storage/index/shared/shared-list.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 91765ba4d534 -r 04ee59c96fc9 src/lib-storage/index/shared/shared-list.c
--- a/src/lib-storage/index/shared/shared-list.c Thu Jun 13 18:54:07 2013 +0300
+++ b/src/lib-storage/index/shared/shared-list.c Thu Jun 13 23:22:20 2013 +0300
@@ -46,10 +46,12 @@
name = mailbox_list_get_storage_name(*list, vname);
if (*name == '\0' && (ns->flags & NAMESPACE_FLAG_AUTOCREATED) == 0) {
/* trying to access the shared/ prefix itself */
- } else {
- if (shared_storage_get_namespace(&ns, &name) < 0)
- return -1;
+ *storage_r = ns->storage;
+ return 0;
}
+
+ if (shared_storage_get_namespace(&ns, &name) < 0)
+ return -1;
*list = ns->list;
return mailbox_list_get_storage(list, vname, storage_r);
}
More information about the dovecot-cvs
mailing list