]> git.sur5r.net Git - openldap/commitdiff
don't leak identity
authorPierangelo Masarati <ando@openldap.org>
Thu, 31 Aug 2006 16:21:54 +0000 (16:21 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 31 Aug 2006 16:21:54 +0000 (16:21 +0000)
servers/slapd/back-ldap/bind.c

index 056ea30a5e3b3471916dddc2a1c34897e9f6bcdb..9d36a4a768b839f3038b358e63708c7746a3ffcc 100644 (file)
@@ -1698,7 +1698,7 @@ ldap_back_proxy_authz_bind( ldapconn_t *lc, Operation *op, SlapReply *rs, ldap_b
                 * so that referral chasing is attempted using the right
                 * identity */
                LDAP_BACK_CONN_ISBOUND_SET( lc );
-               ber_dupbv( &lc->lc_bound_ndn, &binddn );
+               ber_bvreplace( &lc->lc_bound_ndn, &binddn );
 
                if ( LDAP_BACK_SAVECRED( li ) ) {
                        if ( !BER_BVISNULL( &lc->lc_cred ) ) {