From 2ea72234aa8b3e63ed0311eae3c034009d83fe15 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 6 Dec 2005 20:04:52 +0000 Subject: [PATCH] return more appropriate error code --- servers/slapd/back-ldap/bind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5