From: Kurt Zeilenga Date: Tue, 28 Aug 2001 21:43:00 +0000 (+0000) Subject: Minor rework of *text = textbuf fix X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1152 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9a80d76f447390f370446a13c36ec9418a420451;p=openldap Minor rework of *text = textbuf fix --- diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index 91615101e3..6f7d993dd6 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -36,6 +36,8 @@ entry_schema_check( AttributeDescription *ad_objectClass = slap_schema.si_ad_objectClass; int extensible = 0; + *text = textbuf; + /* check single-valued attrs for multiple values */ for ( a = e->e_attrs; a != NULL; a = a->a_next ) { /* there should be at least one value */ @@ -62,15 +64,12 @@ entry_schema_check( e->e_dn, textbuf, 0 ); #endif - *text = textbuf; return LDAP_CONSTRAINT_VIOLATION; } } if( !global_schemacheck ) return LDAP_SUCCESS; - *text = textbuf; - /* find the object class attribute - could error out here */ if ( (aoc = attr_find( e->e_attrs, ad_objectClass )) == NULL ) { #ifdef NEW_LOGGING