Skip to content
Snippets Groups Projects
Commit c89d0db6 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix deadlock in case of bind error; propagate error as appropriate

parent 41c4afb3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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