Mercurial > dovecot > core-2.2
changeset 11522:ed156c989067 HEAD
mailbox_list_get_unexpanded_path(): Don't crash with -o mail_location=..
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 11 Jun 2010 21:39:11 +0100 |
parents | c4fdccf298bf |
children | b135e13f42b2 |
files | src/lib-storage/mailbox-list.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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++; }