From: Kurt Zeilenga Date: Mon, 13 Feb 2006 21:35:58 +0000 (+0000) Subject: Fixed misuse of matched entry X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~194 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3db579c414f1e82c3aa38e94d7429e1c66e1da64;p=openldap Fixed misuse of matched entry --- diff --git a/servers/slapd/back-ldbm/compare.c b/servers/slapd/back-ldbm/compare.c index 7b80428047..ab6022809e 100644 --- a/servers/slapd/back-ldbm/compare.c +++ b/servers/slapd/back-ldbm/compare.c @@ -46,10 +46,7 @@ ldbm_back_compare( e = dn2entry_r( op->o_bd, &op->o_req_ndn, &matched ); if ( e == NULL ) { if ( matched != NULL ) { - struct berval bv; - - ber_str2bv_x( matched, 0, 1, &bv, op->o_tmpmemctx ); - rs->sr_matched = bv.bv_val; + rs->sr_matched = ch_strdup( matched->e_dn ); rs->sr_ref = is_entry_referral( matched ) ? get_entry_referrals( op, matched ) : NULL;