mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix -USLAPD_SCHEMA_NOT_COMPAT
This commit is contained in:
parent
df96737bf2
commit
eb248103b0
3 changed files with 4 additions and 2 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue