mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
SLAPD_SCHEMA_NOT_COMPAT: Fix misuse of attrs_find
This commit is contained in:
parent
2e0c16b56b
commit
522761dc17
3 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ ldbm_back_compare(
|
|||
#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
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ test_ava_filter(
|
|||
#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 )
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ main( int argc, char **argv )
|
|||
#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
|
||||
|
|
|
|||
Loading…
Reference in a new issue