dovecot-2.2: lib-storage: Fixed crash with some autocreated (e.g...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 18 18:56:37 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/8a81c5a1b60f
changeset: 16537:8a81c5a1b60f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 18 18:56:15 2013 +0300
description:
lib-storage: Fixed crash with some autocreated (e.g. shared) namespaces.

diffstat:

 src/lib-storage/mailbox-list.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 07642120b6ea -r 8a81c5a1b60f src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Tue Jun 18 18:54:20 2013 +0300
+++ b/src/lib-storage/mailbox-list.c	Tue Jun 18 18:56:15 2013 +0300
@@ -808,7 +808,7 @@
 		return (*list)->v.get_storage(list, vname, storage_r);
 
 	set = mailbox_settings_find((*list)->ns->user, vname);
-	if (set != NULL && set->driver[0] != '\0') {
+	if (set != NULL && set->driver != NULL && set->driver[0] != '\0') {
 		return mailbox_list_get_storage_driver(*list, set->driver,
 						       storage_r);
 	}


More information about the dovecot-cvs mailing list