Mercurial > dovecot > core-2.2
changeset 13239:5aee3be80d10
lib-storage: Don't crash if INBOX is in a namespace with non-"" non-"INBOX/" prefix.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 14 Aug 2011 23:39:10 +0300 |
parents | e3337e8acbaf |
children | 68c7faa869f8 |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c Sun Aug 14 21:35:39 2011 +0300 +++ b/src/lib-storage/mail-storage.c Sun Aug 14 23:39:10 2011 +0300 @@ -706,6 +706,11 @@ const char *p, *vname = box->vname; char list_sep, ns_sep; + if (box->inbox_user) { + /* this is INBOX - don't bother with further checks */ + return 0; + } + list_sep = mailbox_list_get_hierarchy_sep(box->list); ns_sep = mail_namespace_get_sep(ns);