mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
fix deadlock in case of bind error; propagate error as appropriate
This commit is contained in:
parent
41c4afb331
commit
c89d0db64f
@ -271,7 +271,7 @@ other:;
|
||||
LDAP_BACK_CONN_BINDING_CLEAR( msc );
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
LDAP_BACK_CONN_TAINTED_SET( mc );
|
||||
meta_back_release_conn( op, mc );
|
||||
meta_back_release_conn_lock( op, mc, 0 );
|
||||
*mcp = NULL;
|
||||
|
||||
retcode = META_SEARCH_ERR;
|
||||
@ -323,9 +323,10 @@ meta_search_dobind_result(
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
LDAP_BACK_CONN_TAINTED_SET( mc );
|
||||
meta_back_release_conn( op, mc );
|
||||
meta_back_release_conn_lock( op, mc, 0 );
|
||||
*mcp = NULL;
|
||||
retcode = META_SEARCH_ERR;
|
||||
rs->sr_err = rc;
|
||||
|
||||
} else if ( META_BACK_ONERR_REPORT( mi ) ) {
|
||||
candidates[ candidate ].sr_err = rc;
|
||||
|
Loading…
Reference in New Issue
Block a user