]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Crashfix
authorTimo Sirainen <tss@iki.fi>
Sun, 9 Jun 2013 11:56:36 +0000 (14:56 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 9 Jun 2013 11:56:36 +0000 (14:56 +0300)
src/plugins/acl/acl-backend-vfile.c

index 54426d852c26c19710abedcb98335dd69f490608..07f36a0c2dc2722f26cd10a211549126378b8b75 100644 (file)
@@ -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);