dovecot-2.0: acl: Crashfix when using namespaces without ACLs.

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 6 21:02:59 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/1aa2ccceacb9
changeset: 11961:1aa2ccceacb9
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 06 19:02:57 2010 +0100
description:
acl: Crashfix when using namespaces without ACLs.

diffstat:

 src/plugins/acl/acl-mailbox-list.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 3fc1f263827c -r 1aa2ccceacb9 src/plugins/acl/acl-mailbox-list.c
--- 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)


More information about the dovecot-cvs mailing list