mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
don't call cache_return_entry_rw with e of NULL
This commit is contained in:
parent
8c4711e9db
commit
28191d7642
1 changed files with 3 additions and 4 deletions
|
|
@ -259,7 +259,7 @@ ldbm_back_modify(
|
|||
cache_return_entry_r( &li->li_cache, matched );
|
||||
} else {
|
||||
rs->sr_ref = referral_rewrite( default_referral, NULL,
|
||||
&op->o_req_dn, LDAP_SCOPE_DEFAULT );
|
||||
&op->o_req_dn, LDAP_SCOPE_DEFAULT );
|
||||
}
|
||||
|
||||
rs->sr_err = LDAP_REFERRAL;
|
||||
|
|
@ -267,8 +267,7 @@ ldbm_back_modify(
|
|||
goto return_results;
|
||||
}
|
||||
|
||||
if ( !manageDSAit && is_entry_referral( e ) )
|
||||
{
|
||||
if ( !manageDSAit && is_entry_referral( e ) ) {
|
||||
/* parent is a referral, don't allow add */
|
||||
/* parent is an alias, don't allow add */
|
||||
rs->sr_ref = get_entry_referrals( op, e );
|
||||
|
|
@ -295,7 +294,7 @@ ldbm_back_modify(
|
|||
}
|
||||
|
||||
return_results:;
|
||||
cache_return_entry_w( &li->li_cache, e );
|
||||
if( e != NULL ) cache_return_entry_w( &li->li_cache, e );
|
||||
ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);
|
||||
|
||||
send_ldap_result( op, rs );
|
||||
|
|
|
|||
Loading…
Reference in a new issue