#ifdef SLAPD_SCHEMA_NOT_COMPAT
for(a = attrs_find( e->e_attrs, ava->aa_desc );
a != NULL;
- a = attrs_find( a, ava->aa_desc ))
+ a = attrs_find( a->a_next, ava->aa_desc ))
#else
if ((a = attr_find( e->e_attrs, ava->ava_type )) != NULL )
#endif
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for(a = attrs_find( e->e_attrs, ava->aa_desc );
a != NULL;
- a = attrs_find( a, ava->aa_desc ) )
+ a = attrs_find( a->a_next, ava->aa_desc ) )
#else
a = attr_find( e->e_attrs, ava->ava_type );
if ( a != NULL )
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for( attr = attrs_find( e->e_attrs, desc );
attr != NULL;
- attr = attrs_find( attr, desc ) )
+ attr = attrs_find( attr->a_next, desc ) )
#else
if (( attr = attr_find( e->e_attrs, type )) != NULL )
#endif