mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
return more appropriate error code
This commit is contained in:
parent
64c1a3f1a6
commit
2ea72234aa
1 changed files with 2 additions and 2 deletions
|
|
@ -301,7 +301,7 @@ ldap_back_start_tls(
|
|||
retry:;
|
||||
rc = ldap_result( ld, msgid, LDAP_MSG_ALL, &tv, &res );
|
||||
if ( rc < 0 ) {
|
||||
rc = LDAP_OTHER;
|
||||
rc = LDAP_UNAVAILABLE;
|
||||
|
||||
} else if ( rc == 0 ) {
|
||||
if ( retries != LDAP_BACK_RETRY_NEVER ) {
|
||||
|
|
@ -312,7 +312,7 @@ retry:;
|
|||
LDAP_BACK_TV_SET( &tv );
|
||||
goto retry;
|
||||
}
|
||||
rc = LDAP_OTHER;
|
||||
rc = LDAP_UNAVAILABLE;
|
||||
|
||||
} else if ( rc == LDAP_RES_EXTENDED ) {
|
||||
struct berval *data = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue