From: Timo Sirainen Date: Sun, 16 Nov 2008 02:21:02 +0000 (+0200) Subject: acl_object_get_my_rights() was returning broken rights. X-Git-Tag: 1.2.alpha4~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a5bc705647dffbdc3b2582ceee17f650f74e8c0;p=thirdparty%2Fdovecot%2Fcore.git acl_object_get_my_rights() was returning broken rights. --HG-- branch : HEAD --- diff --git a/src/plugins/acl/acl-api.c b/src/plugins/acl/acl-api.c index 39edba32c3..d81315f56a 100644 --- a/src/plugins/acl/acl-api.c +++ b/src/plugins/acl/acl-api.c @@ -85,7 +85,7 @@ static int acl_object_get_my_rights_real(struct acl_object *aclobj, pool_t pool, name_idx += CHAR_BIT; else { for (j = 1; j < (1 << CHAR_BIT); j <<= 1, name_idx++) { - if ((mask->mask[j] & j) == 0) + if ((mask->mask[i] & j) == 0) continue; /* @UNSAFE */