dovecot-2.2: acl: acl_object_list_next() should return -1 if acl...

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 4 10:01:31 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/48684e4af247
changeset: 19091:48684e4af247
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 04 13:00:14 2015 +0300
description:
acl: acl_object_list_next() should return -1 if acl refreshing failed earlier.

diffstat:

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

diffs (13 lines):

diff -r 3abdcbde7f39 -r 48684e4af247 src/plugins/acl/acl-api.c
--- a/src/plugins/acl/acl-api.c	Fri Sep 04 11:21:39 2015 +0300
+++ b/src/plugins/acl/acl-api.c	Fri Sep 04 13:00:14 2015 +0300
@@ -210,6 +210,9 @@
 {
 	const struct acl_rights *rights;
 
+	if (iter->failed)
+		return -1;
+
 	if (iter->idx == array_count(&iter->aclobj->rights))
 		return 0;
 


More information about the dovecot-cvs mailing list