From f22c4dd7a1f7029b18e9e006e5f8a4270671d698 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga <kurt@openldap.org> Date: Wed, 29 Aug 2001 19:44:50 +0000 Subject: [PATCH] Import textbuf bug fix --- servers/slapd/schema_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index b74e7b644a..cfb663470c 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,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", -- GitLab