Skip to content
Snippets Groups Projects
Commit 362020da authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

fixes from HEAD

parent 43b89952
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ ldbm_back_compare(
}
return_results:;
cache_return_entry_r( &li->li_cache, e );
if ( e ) cache_return_entry_r( &li->li_cache, e );
ldap_pvt_thread_rdwr_runlock(&li->li_giant_rwlock);
send_ldap_result( op, rs );
......
......@@ -112,6 +112,7 @@ idl_allids( Backend *be )
idl = idl_alloc( 0 );
ID_BLOCK_NMAX(idl) = ID_BLOCK_ALLIDS_VALUE;
if ( next_id_get( be, &id ) ) {
idl_free( idl );
return NULL;
}
ID_BLOCK_NIDS(idl) = id;
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment