mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Fix desc not NULL bugs
This commit is contained in:
parent
8d407bc2a6
commit
349bec7c0e
@ -98,6 +98,7 @@ do_compare(
|
||||
}
|
||||
|
||||
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||
ava.aa_desc = NULL;
|
||||
rc = slap_bv2ad( &desc, &ava.aa_desc, &text );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
send_ldap_result( conn, op, rc, NULL,
|
||||
|
@ -372,6 +372,7 @@ get_substring_filter(
|
||||
}
|
||||
|
||||
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||
f->f_sub_desc = NULL;
|
||||
rc = slap_bv2ad( &type, &f->f_sub_desc, text );
|
||||
|
||||
ch_free( type.bv_val );
|
||||
|
@ -688,10 +688,14 @@ schema_prep( void )
|
||||
|
||||
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||
for( i=0; ad_map[i].ssm_type; i++ ) {
|
||||
int rc = slap_str2ad( ad_map[i].ssm_type,
|
||||
(AttributeDescription **)
|
||||
&(((char *) &slap_schema)[ad_map[i].ssm_offset]),
|
||||
&text);
|
||||
int rc;
|
||||
|
||||
AttributeDescription ** adp = (AttributeDescription **)
|
||||
&(((char *) &slap_schema)[ad_map[i].ssm_offset]);
|
||||
|
||||
*adp = NULL;
|
||||
|
||||
rc = slap_str2ad( ad_map[i].ssm_type, adp, &text );
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
fprintf( stderr,
|
||||
|
Loading…
Reference in New Issue
Block a user