]> git.sur5r.net Git - openldap/commitdiff
do not assume sr_err == LDAP_SUCCESS; cleanup
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Sep 2010 14:26:56 +0000 (14:26 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Sep 2010 14:26:56 +0000 (14:26 +0000)
servers/slapd/back-bdb/bind.c

index f982e9e4e560a8786c47732e67c9218da7dc6674..c75c97024ee9db492f50e7b0e92f96193d4932f9 100644 (file)
@@ -43,10 +43,10 @@ bdb_bind( Operation *op, SlapReply *rs )
        switch ( be_rootdn_bind( op, NULL ) ) {
        case LDAP_SUCCESS:
                /* frontend will send result */
-               return rs->sr_err;
+               return rs->sr_err = LDAP_SUCCESS;
 
        default:
-               /* give the database a chanche */
+               /* give the database a chance */
                /* NOTE: this behavior departs from that of other backends,
                 * since the others, in case of password checking failure
                 * do not give the database a chance.  If an entry with