mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fixed misuse of matched entry
This commit is contained in:
parent
1884790b5c
commit
3db579c414
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user