From b4dbfb570a88397b08ddab98acd5d297431ab2df Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 8 Apr 2003 13:22:12 +0000 Subject: [PATCH] cleanup --- servers/slapd/back-ldap/config.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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)) { -- 2.39.5