From 8a71ac37401919e456410c9319314d79873272b0 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 31 Aug 2006 16:21:54 +0000 Subject: [PATCH] don't leak identity --- servers/slapd/back-ldap/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 056ea30a5e..9d36a4a768 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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 ) ) { -- 2.39.5