}
#ifdef SLAPD_SCHEMA_NOT_COMPAT
- {
- char *text;
- int rc;
- f->f_desc = NULL;
- err = slap_bv2ad( &type, &f->f_desc, &text );
-
- if( err != LDAP_SUCCESS ) {
- ch_free( type.bv_val );
- break;
- }
+ f->f_desc = NULL;
+ err = slap_bv2ad( &type, &f->f_desc, text );
+ if( err != LDAP_SUCCESS ) {
ch_free( type.bv_val );
+ break;
}
+ ch_free( type.bv_val );
+
*fstr = ch_malloc( sizeof("(=*)")
+ f->f_desc->ad_cname->bv_len );
sprintf( *fstr, "(%s=*)",
val.bv_len = strlen( ++val.bv_val );
#ifdef SLAPD_SCHEMA_NOT_COMPAT
- rc = slap_str2ad( rdn, &desc, &text );
+ rc = slap_str2ad( rdn, &desc, text );
if( rc != LDAP_SUCCESS ) {
free( rdn );