dovecot-2.2: lib-storage: mailbox_list_fs_get_list() shouldn't c...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 5 13:20:15 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/164d4d499069
changeset: 18522:164d4d499069
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 05 16:14:07 2015 +0300
description:
lib-storage: mailbox_list_fs_get_list() shouldn't crash if fs wasn't created by mailbox_list_init_fs()

diffstat:

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

diffs (10 lines):

diff -r 5e445c659f89 -r 164d4d499069 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Tue May 05 14:16:31 2015 +0300
+++ b/src/lib-storage/mailbox-list.c	Tue May 05 16:14:07 2015 +0300
@@ -1872,5 +1872,5 @@
 		fs = fs->parent;
 
 	ctx = MAILBOX_LIST_FS_CONTEXT(fs);
-	return ctx->list;
+	return ctx == NULL ? NULL : ctx->list;
 }


More information about the dovecot-cvs mailing list