dovecot-2.1: lib-storage: Trying to access shared mailboxes of n...

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 9 04:13:41 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/f2d5a1efdda2
changeset: 14091:f2d5a1efdda2
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 09 04:13:28 2012 +0200
description:
lib-storage: Trying to access shared mailboxes of nonexistent users crashed.
This was broken by commit 18078d6cce84.

diffstat:

 src/lib-storage/index/shared/shared-storage.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r b600af017598 -r f2d5a1efdda2 src/lib-storage/index/shared/shared-storage.c
--- a/src/lib-storage/index/shared/shared-storage.c	Thu Feb 09 03:56:50 2012 +0200
+++ b/src/lib-storage/index/shared/shared-storage.c	Thu Feb 09 04:13:28 2012 +0200
@@ -46,6 +46,8 @@
 	storage->location = p_strdup(_storage->pool, ns->set->location);
 	storage->unexpanded_location =
 		p_strdup(_storage->pool, ns->unexpanded_set->location);
+	storage->storage_class_name = p_strdup(_storage->pool, driver);
+
 	storage_class = mail_storage_find_class(driver);
 	if (storage_class != NULL)
 		_storage->class_flags = storage_class->class_flags;


More information about the dovecot-cvs mailing list