From: Pierangelo Masarati Date: Wed, 17 Aug 2005 19:38:36 +0000 (+0000) Subject: fix return code (prevents clean usage of back-ldap for internal searchs) X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~681 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58730483473a4c20f7768bf45ab43ae74db14c1a;p=openldap fix return code (prevents clean usage of back-ldap for internal searchs) --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 09b23924d5..3765e3bb0a 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -882,7 +882,7 @@ retry:; ldap_memfree( text ); } rs->sr_text = NULL; - return( ERR_OK( rs->sr_err ) ? 0 : -1 ); + return( ERR_OK( rs->sr_err ) ? LDAP_SUCCESS : rs->sr_err ); } /* return true if bound, false if failed */