mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Allow sml_desc to be set by caller in slap_mods_check()
This commit is contained in:
parent
efa1ba86bf
commit
9a1c8cdb88
@ -541,13 +541,14 @@ int slap_mods_check(
|
||||
AttributeDescription *ad = NULL;
|
||||
|
||||
/* convert to attribute description */
|
||||
rc = slap_bv2ad( &ml->sml_type, &ml->sml_desc, text );
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
snprintf( textbuf, textlen, "%s: %s",
|
||||
ml->sml_type.bv_val, *text );
|
||||
*text = textbuf;
|
||||
return rc;
|
||||
if ( ml->sml_desc == NULL ) {
|
||||
rc = slap_bv2ad( &ml->sml_type, &ml->sml_desc, text );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
snprintf( textbuf, textlen, "%s: %s",
|
||||
ml->sml_type.bv_val, *text );
|
||||
*text = textbuf;
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
ad = ml->sml_desc;
|
||||
|
Loading…
Reference in New Issue
Block a user