From: Pierangelo Masarati Date: Tue, 6 Dec 2005 20:04:52 +0000 (+0000) Subject: return more appropriate error code X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~641 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ea72234aa8b3e63ed0311eae3c034009d83fe15;p=openldap return more appropriate error code --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 6d7899e44d..2000f829ea 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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;