mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
Fix server unavailable handling bug introduced by the ldap_open to
ldap_init change. Fix suggested by Jay D. Allen <jay@fork.com>.
This commit is contained in:
parent
3eef87beeb
commit
4dfc7fc674
1 changed files with 3 additions and 1 deletions
|
|
@ -89,8 +89,10 @@ do_ldap(
|
|||
while ( retry > 0 ) {
|
||||
if ( ri->ri_ldp == NULL ) {
|
||||
rc = do_bind( ri, &lderr );
|
||||
|
||||
if ( rc != BIND_OK ) {
|
||||
return DO_LDAP_ERR_RETRYABLE;
|
||||
(void) do_unbind( ri );
|
||||
return DO_LDAP_ERR_RETRYABLE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue