changeset 11961:1aa2ccceacb9

acl: Crashfix when using namespaces without ACLs.
author Timo Sirainen <tss@iki.fi>
date Fri, 06 Aug 2010 19:02:57 +0100
parents 3fc1f263827c
children 874422af78b1
files src/plugins/acl/acl-mailbox-list.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/acl/acl-mailbox-list.c	Fri Aug 06 18:58:17 2010 +0100
+++ b/src/plugins/acl/acl-mailbox-list.c	Fri Aug 06 19:02:57 2010 +0100
@@ -545,6 +545,9 @@
 	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)