]> git.sur5r.net Git - openldap/commitdiff
return more appropriate error code
authorPierangelo Masarati <ando@openldap.org>
Tue, 6 Dec 2005 20:04:52 +0000 (20:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 6 Dec 2005 20:04:52 +0000 (20:04 +0000)
servers/slapd/back-ldap/bind.c

index 6d7899e44dde4efe40c57c67cd7012e1cecc03ac..2000f829eaaf979cc28d98ced0345388d15ca90d 100644 (file)
@@ -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;