From: Mark Valence Date: Wed, 14 Jun 2000 06:08:20 +0000 (+0000) Subject: Bug hunting -- hang when checking dnattr in ACL. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2649 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ebf86f2d3e41641978b80ecd48ae001709aa6ba;p=openldap Bug hunting -- hang when checking dnattr in ACL. --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index d93d1c3ef4..faafc2652b 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -544,8 +544,8 @@ acl_mask( /* see if asker is listed in dnattr */ for( at = attrs_find( e->e_attrs, b->a_dn_at ); - at == NULL; - at = attrs_find( e->e_attrs->a_next, b->a_dn_at ) ) + at != NULL; + at = attrs_find( at->a_next, b->a_dn_at ) ) { if( value_find( b->a_dn_at, at->a_vals, &bv ) == 0 ) { /* found it */