]> git.sur5r.net Git - openldap/commitdiff
Fix missing error text
authorHoward Chu <hyc@openldap.org>
Thu, 17 Nov 2005 08:40:46 +0000 (08:40 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Nov 2005 08:40:46 +0000 (08:40 +0000)
servers/slapd/add.c
servers/slapd/modify.c

index 896eae65ea9d97b4708197b67ee30a8d869a0146..c35cafc96f2924021c8eaf3398c1b88965e1e9fc 100644 (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 ) {
index c9c594474f221a39168a4f2634d58b095f080eb0..90c7d3c3a0901f60388365b006b26d5ae7511f27 100644 (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;
                        }
                }