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:
Kurt Zeilenga 1999-12-12 20:12:39 +00:00
parent 3eef87beeb
commit 4dfc7fc674

View File

@ -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;
}
}