]> git.sur5r.net Git - openldap/commitdiff
don't return client API error if the server is down...
authorPierangelo Masarati <ando@openldap.org>
Sat, 30 Apr 2005 17:54:35 +0000 (17:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 30 Apr 2005 17:54:35 +0000 (17:54 +0000)
servers/slapd/back-meta/bind.c

index 1c088369ae3653306882427580f6ce3db99cf275..8680609763a017a2c999a8b5af48436fc4d7c68e 100644 (file)
@@ -490,6 +490,8 @@ meta_back_dobind(
                rc = meta_back_single_dobind( op, rs, mc, i,
                                LDAP_BACK_DONTSEND, mt->mt_nretries );
                if ( rc != LDAP_SUCCESS ) {
+                       rs->sr_err = slap_map_api2result( rs );
+
                        Debug( LDAP_DEBUG_ANY, "%s meta_back_dobind[%d]: "
                                        "(anonymous) err=%d\n",
                                        op->o_log_prefix, i, rc );