mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-06-09 08:42:22 -04:00
Fix for dn2entry NULL result
This commit is contained in:
parent
a909f77bff
commit
eae1a9bac5
1 changed files with 6 additions and 6 deletions
|
|
@ -136,19 +136,19 @@ txnReturn:
|
|||
"<=- " LDAP_XSTRING(mdb_delete) ": no such object %s\n",
|
||||
op->o_req_dn.bv_val, 0, 0);
|
||||
|
||||
if ( !BER_BVISEMPTY( &p->e_name )) {
|
||||
if ( p && !BER_BVISEMPTY( &p->e_name )) {
|
||||
rs->sr_matched = ch_strdup( p->e_name.bv_val );
|
||||
rs->sr_ref = ( p && is_entry_referral( p ))
|
||||
rs->sr_ref = ( is_entry_referral( p ))
|
||||
? get_entry_referrals( op, p )
|
||||
: NULL;
|
||||
if ( p ) {
|
||||
mdb_entry_return( p );
|
||||
p = NULL;
|
||||
}
|
||||
} else {
|
||||
rs->sr_ref = referral_rewrite( default_referral, NULL,
|
||||
&op->o_req_dn, LDAP_SCOPE_DEFAULT );
|
||||
}
|
||||
if ( p ) {
|
||||
mdb_entry_return( p );
|
||||
p = NULL;
|
||||
}
|
||||
|
||||
rs->sr_err = LDAP_REFERRAL;
|
||||
rs->sr_flags = REP_MATCHED_MUSTBEFREED | REP_REF_MUSTBEFREED;
|
||||
|
|
|
|||
Loading…
Reference in a new issue