From: Kurt Zeilenga Date: Wed, 24 May 2000 18:00:30 +0000 (+0000) Subject: SLAPD_SCHEMA_NOT_COMPAT: Fix misuse of attrs_find X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2879 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=522761dc17855bb992d1b8179654d7c061fbc052;p=openldap SLAPD_SCHEMA_NOT_COMPAT: Fix misuse of attrs_find --- diff --git a/servers/slapd/back-ldbm/compare.c b/servers/slapd/back-ldbm/compare.c index e3de9d4797..cd087aa82f 100644 --- a/servers/slapd/back-ldbm/compare.c +++ b/servers/slapd/back-ldbm/compare.c @@ -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 diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index efa6ef820a..b60ed66873 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -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 ) diff --git a/servers/slapd/tools/slapindex.c b/servers/slapd/tools/slapindex.c index f946496e5d..1bff4b996b 100644 --- a/servers/slapd/tools/slapindex.c +++ b/servers/slapd/tools/slapindex.c @@ -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