From: Timo Sirainen Date: Sun, 9 Jun 2013 11:56:36 +0000 (+0300) Subject: acl: Crashfix X-Git-Tag: 2.2.3~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a6cbb69f18901d1dd7237bbd9016ac7cc2138b6;p=thirdparty%2Fdovecot%2Fcore.git acl: Crashfix --- diff --git a/src/plugins/acl/acl-backend-vfile.c b/src/plugins/acl/acl-backend-vfile.c index 54426d852c..07f36a0c2d 100644 --- a/src/plugins/acl/acl-backend-vfile.c +++ b/src/plugins/acl/acl-backend-vfile.c @@ -144,7 +144,7 @@ acl_backend_vfile_get_local_dir(struct acl_backend *backend, /* ACL files are very important. try to keep them among the main mail files. that's not possible though with a) if the mailbox is a file or b) if the mailbox path doesn't point to filesystem. */ - vname = mailbox_list_get_vname(backend->list, name); + vname = name == NULL ? "" : mailbox_list_get_vname(backend->list, name); if (mailbox_list_get_storage(&list, vname, &storage) < 0) return NULL; i_assert(list == ns->list);