From: Timo Sirainen Date: Fri, 6 Aug 2010 18:02:57 +0000 (+0100) Subject: acl: Crashfix when using namespaces without ACLs. X-Git-Tag: 2.0.rc5~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9298394f818e96140eef4eb942f6bcfbbef78859;p=thirdparty%2Fdovecot%2Fcore.git acl: Crashfix when using namespaces without ACLs. --- 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)