]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Tue, 8 Apr 2003 13:22:12 +0000 (13:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 8 Apr 2003 13:22:12 +0000 (13:22 +0000)
servers/slapd/back-ldap/config.c

index 7399a3cc026734820830badaa4f4485135dd5735..80fca89905ed8b294a4acccf1c7282269733a17c 100644 (file)
@@ -420,15 +420,12 @@ ldap_back_exop_whoami(
        if ( op->oq_extended.rs_reqdata != NULL ) {
                /* no request data should be provided */
                rs->sr_text = "no request data expected";
-               return LDAP_PROTOCOL_ERROR;
+               return rs->sr_err = LDAP_PROTOCOL_ERROR;
        }
 
-       {
-               rs->sr_err = backend_check_restrictions( op, rs, 
+       rs->sr_err = backend_check_restrictions( op, rs, 
                        (struct berval *)&slap_EXOP_WHOAMI );
-
-               if( rs->sr_err != LDAP_SUCCESS ) return rs->sr_err;
-       }
+       if( rs->sr_err != LDAP_SUCCESS ) return rs->sr_err;
 
        /* if auth'd by back-ldap and request is proxied, forward it */
        if ( op->o_conn->c_authz_backend && !strcmp(op->o_conn->c_authz_backend->be_type, "ldap" ) && !dn_match(&op->o_ndn, &op->o_conn->c_ndn)) {