]> git.sur5r.net Git - openldap/commitdiff
(blind) fix for ITS#6661
authorPierangelo Masarati <ando@openldap.org>
Wed, 29 Sep 2010 16:34:36 +0000 (16:34 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 29 Sep 2010 16:34:36 +0000 (16:34 +0000)
servers/slapd/back-ndb/bind.cpp

index 33257d667084b8b035b0e03d523e2967bb22f3e0..f80902015e0544f2787e3f03b3f2e48ce062020f 100644 (file)
@@ -42,11 +42,8 @@ ndb_back_bind( Operation *op, SlapReply *rs )
                op->o_req_dn.bv_val, 0, 0);
 
        /* allow noauth binds */
-       switch ( be_rootdn_bind( op, NULL ) ) {
-       case SLAP_CB_CONTINUE:
-               break;
-
-       default:
+       rs->sr_err = be_rootdn_bind( op, NULL );
+       if ( rs->sr_err != SLAP_CB_CONTINUE ) {
                return rs->sr_err;
        }