]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import textbuf bug fix
authorKurt Zeilenga <kurt@openldap.org>
Wed, 29 Aug 2001 19:44:50 +0000 (19:44 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 29 Aug 2001 19:44:50 +0000 (19:44 +0000)
servers/slapd/schema_check.c

index b74e7b644a1c14dfb8af989f5651b5d2336fe552..cfb663470cc744379ef494d00d22938c010a4179 100644 (file)
@@ -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,8 +64,6 @@ entry_schema_check(
 
        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 ) {
                Debug( LDAP_DEBUG_ANY, "No objectClass for entry (%s)\n",