From: Pierangelo Masarati Date: Tue, 8 Apr 2003 13:22:12 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~424 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4dbfb570a88397b08ddab98acd5d297431ab2df;p=openldap cleanup --- diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 7399a3cc02..80fca89905 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -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)) {