mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08: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
@ -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 New Issue
Block a user