From 9298394f818e96140eef4eb942f6bcfbbef78859 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 6 Aug 2010 19:02:57 +0100 Subject: [PATCH] acl: Crashfix when using namespaces without ACLs. --- src/plugins/acl/acl-mailbox-list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/acl/acl-mailbox-list.c b/src/plugins/acl/acl-mailbox-list.c index b7a29a5112..83cb6df0cb 100644 --- a/src/plugins/acl/acl-mailbox-list.c +++ b/src/plugins/acl/acl-mailbox-list.c @@ -545,6 +545,9 @@ void acl_mail_namespace_storage_added(struct mail_namespace *ns) const char *current_username, *owner_username; bool owner = TRUE; + if (alist == NULL) + return; + owner_username = ns->user->username; current_username = auser->master_user; if (current_username == NULL) -- 2.47.3