]> git.sur5r.net Git - openldap/commitdiff
fix return code (prevents clean usage of back-ldap for internal searchs)
authorPierangelo Masarati <ando@openldap.org>
Wed, 17 Aug 2005 19:38:36 +0000 (19:38 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 17 Aug 2005 19:38:36 +0000 (19:38 +0000)
servers/slapd/back-ldap/bind.c

index 09b23924d5f11d5313ac508e30c8350be7804559..3765e3bb0a523d41e5c918e981c70716b8b4d1b6 100644 (file)
@@ -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 */