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

Fix server unavailable handling bug introduced by the ldap_open to

ldap_init change.   Fix suggested by Jay D. Allen <jay@fork.com>.
parent 3eef87be
No related branches found
No related tags found
No related merge requests found
...@@ -89,8 +89,10 @@ do_ldap( ...@@ -89,8 +89,10 @@ do_ldap(
while ( retry > 0 ) { while ( retry > 0 ) {
if ( ri->ri_ldp == NULL ) { if ( ri->ri_ldp == NULL ) {
rc = do_bind( ri, &lderr ); rc = do_bind( ri, &lderr );
if ( rc != BIND_OK ) { if ( rc != BIND_OK ) {
return DO_LDAP_ERR_RETRYABLE; (void) do_unbind( ri );
return DO_LDAP_ERR_RETRYABLE;
} }
} }
......
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