Mercurial > dovecot > core-2.2
changeset 15559:04704d1eb6c3
indexer-worker: Don't assert-crash with some mailbox names in some configurations.
Virtual mailbox name shouldn't be accessed directly using mailbox_list_*()
functions, since they expect a storage name. In some configurations this
could have caused assert-crashes with mailbox names that contained invalid
characters.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 18 Dec 2012 20:48:36 +0200 |
parents | 4ec13ce76f6e |
children | b53ab1c11843 |
files | src/indexer/master-connection.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/indexer/master-connection.c Tue Dec 18 18:57:41 2012 +0200 +++ b/src/indexer/master-connection.c Tue Dec 18 20:48:36 2012 +0200 @@ -129,10 +129,10 @@ return -1; } - path = mailbox_list_get_path(ns->list, mailbox, + path = mailbox_list_get_path(ns->list, NULL, MAILBOX_LIST_PATH_TYPE_INDEX); if (*path == '\0') { - i_info("Indexes disabled for Mailbox %s, skipping", mailbox); + i_info("Indexes disabled for mailbox %s, skipping", mailbox); return 0; }