dovecot-2.2: acl: Don't crash when rebuilding acl dict for "unus...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Mar 22 10:29:17 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/d211174a2392
changeset: 16087:d211174a2392
user: Timo Sirainen <tss at iki.fi>
date: Fri Mar 22 10:29:12 2013 +0200
description:
acl: Don't crash when rebuilding acl dict for "unusable" namespaces.
diffstat:
src/plugins/acl/acl-lookup-dict.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 9439a43bd645 -r d211174a2392 src/plugins/acl/acl-lookup-dict.c
--- a/src/plugins/acl/acl-lookup-dict.c Thu Mar 21 23:51:16 2013 +0200
+++ b/src/plugins/acl/acl-lookup-dict.c Fri Mar 22 10:29:12 2013 +0200
@@ -110,7 +110,8 @@
string_t *id;
int ret, ret2 = 0;
- if ((ns->flags & NAMESPACE_FLAG_NOACL) != 0 || ns->owner == NULL)
+ if ((ns->flags & NAMESPACE_FLAG_NOACL) != 0 || ns->owner == NULL ||
+ ACL_LIST_CONTEXT(ns->list) == NULL)
return 0;
id = t_str_new(128);
More information about the dovecot-cvs
mailing list