Skip to content
Snippets Groups Projects
Commit 522761dc authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

SLAPD_SCHEMA_NOT_COMPAT: Fix misuse of attrs_find

parent 2e0c16b5
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment