From 127c53385329db14f31fd10da5edc74a261012c6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 21 Jun 2010 20:24:20 +0000 Subject: [PATCH] use realloc --- servers/slapd/controls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 5cdfaf0051..8467ff8536 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -1137,14 +1137,13 @@ static int parseProxyAuthz ( } ch_free( op->o_ndn.bv_val ); - ch_free( op->o_dn.bv_val ); /* * NOTE: since slap_sasl_getdn() returns a normalized dn, * from now on op->o_dn is normalized */ op->o_ndn = dn; - ber_dupbv( &op->o_dn, &dn ); + ber_bvreplace( &op->o_dn, &dn ); Statslog( LDAP_DEBUG_STATS, "%s PROXYAUTHZ dn=\"%s\"\n", op->o_log_prefix, dn.bv_val, 0, 0, 0 ); -- 2.39.5