dovecot-2.0: mailbox_list_get_unexpanded_path(): Don't crash wit...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 11 23:39:14 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/ed156c989067
changeset: 11522:ed156c989067
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 11 21:39:11 2010 +0100
description:
mailbox_list_get_unexpanded_path(): Don't crash with -o mail_location=..

diffstat:

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

diffs (14 lines):

diff -r c4fdccf298bf -r ed156c989067 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Fri Jun 11 20:34:44 2010 +0100
+++ b/src/lib-storage/mailbox-list.c	Fri Jun 11 21:39:11 2010 +0100
@@ -323,6 +323,10 @@
 			user->unexpanded_set, MAIL_STORAGE_SET_DRIVER_NAME);
 		i_assert(mail_set != NULL);
 		location = mail_set->mail_location;
+		if (*location == '1') {
+			/* we'll get here if using -o mail_location=.. */
+			return "";
+		}
 		i_assert(*location == '0');
 		location++;
 	}


More information about the dovecot-cvs mailing list