Fix missing error text

This commit is contained in:
Howard Chu 2005-11-17 08:40:46 +00:00
parent 28aca605c7
commit 1340530e41
2 changed files with 3 additions and 0 deletions

View File

@ -470,6 +470,7 @@ slap_mods2entry(
snprintf( textbuf, textlen,
"attribute '%s' provided more than once",
mods->sml_desc->ad_cname.bv_val );
*text = textbuf;
return LDAP_TYPE_OR_VALUE_EXISTS;
#endif
}
@ -500,6 +501,7 @@ slap_mods2entry(
snprintf( textbuf, textlen,
"%s: value #%d provided more than once",
mods->sml_desc->ad_cname.bv_val, j );
*text = textbuf;
return LDAP_TYPE_OR_VALUE_EXISTS;
} else if ( rc != LDAP_SUCCESS ) {

View File

@ -525,6 +525,7 @@ slap_mods_no_repl_user_mod_check(
snprintf( textbuf, textlen,
"attribute '%s' provided more than once",
mods->sml_desc->ad_cname.bv_val );
*text = textbuf;
return LDAP_TYPE_OR_VALUE_EXISTS;
}
}