Fix -USLAPD_SCHEMA_NOT_COMPAT

This commit is contained in:
Kurt Zeilenga 2000-05-16 22:04:49 +00:00
parent df96737bf2
commit eb248103b0
3 changed files with 4 additions and 2 deletions

View File

@ -97,6 +97,7 @@ int slap_bv2ad(
char **tokens;
assert( ad != NULL );
assert( *ad == NULL ); /* temporary */
assert( *text != NULL );
if( bv == NULL || bv->bv_len == 0 ) {

View File

@ -98,9 +98,10 @@ get_filter(
break;
}
assert( f->f_ava != NULL );
#ifdef SLAPD_SCHEMA_NOT_COMPAT
assert( f->f_ava != NULL );
*fstr = ch_malloc( sizeof("(=)")
+ f->f_av_desc->ad_cname->bv_len
+ f->f_av_value->bv_len );

View File

@ -102,7 +102,7 @@ schema_info( Entry **entry, char **text )
{
/* Out of memory, do something about it */
entry_free( e );
text = "out of memory";
*text = "out of memory";
return LDAP_OTHER;
}