From: Howard Chu Date: Thu, 17 Nov 2005 08:40:46 +0000 (+0000) Subject: Fix missing error text X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~794 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1340530e41b38f8385d3320bce21af9d302e99c1;p=openldap Fix missing error text --- diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 896eae65ea..c35cafc96f 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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 ) { diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index c9c594474f..90c7d3c3a0 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -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; } }