]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Crashfix when using namespaces without ACLs.
authorTimo Sirainen <tss@iki.fi>
Fri, 6 Aug 2010 18:02:57 +0000 (19:02 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 6 Aug 2010 18:02:57 +0000 (19:02 +0100)
src/plugins/acl/acl-mailbox-list.c

index b7a29a51125081f210541ea6c084f92ff1eeec2e..83cb6df0cba034a47542eb756fb1c537d64a943c 100644 (file)
@@ -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)