dovecot-2.0: dsync: Don't crash if shared namespace exists.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 7 02:08:30 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/ad6b245cf3b5
changeset: 11089:ad6b245cf3b5
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 07 02:08:28 2010 +0300
description:
dsync: Don't crash if shared namespace exists.
diffstat:
src/dsync/dsync-worker-local.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 77e9d36b3f82 -r ad6b245cf3b5 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c Wed Apr 07 02:02:40 2010 +0300
+++ b/src/dsync/dsync-worker-local.c Wed Apr 07 02:08:28 2010 +0300
@@ -149,7 +149,9 @@
continue;
for (ns = user->namespaces; ns != NULL; ns = ns->next) {
- if (strcmp(ns->prefix, ns_set[i]->prefix) == 0) {
+ /* compare settings pointers so that it'll work
+ for shared namespaces */
+ if (ns->set == ns_set[i]) {
mail_namespace_destroy(ns);
break;
}
More information about the dovecot-cvs
mailing list