Skip to content
Snippets Groups Projects
Commit 9a1c8cdb authored by Luke Howard's avatar Luke Howard
Browse files

Allow sml_desc to be set by caller in slap_mods_check()

parent efa1ba86
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment