From: Pierangelo Masarati Date: Mon, 20 Oct 2008 23:19:07 +0000 (+0000) Subject: backout ITS#5758 commit X-Git-Tag: ACLCHECK_0~1215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1119ec9b3b062fa5eadd2c93968a4f025e15cd8;p=openldap backout ITS#5758 commit --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 05aa30e284..f2efdd1696 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -1038,26 +1038,6 @@ static int parseNoOp ( return LDAP_PROTOCOL_ERROR; } - if ( !ctrl->ldctl_iscritical ) { - rs->sr_text = "noop control not critical"; - return LDAP_PROTOCOL_ERROR; - } - - switch ( op->o_tag ) { - case LDAP_REQ_ADD: - case LDAP_REQ_MODIFY: - case LDAP_REQ_RENAME: - case LDAP_REQ_DELETE: - /* NOTE: only selected extended operations should be eligible; - * checking is delegated to the appropriate handlers */ - case LDAP_REQ_EXTENDED: - break; - - default: - rs->sr_text = "noop control on non-allowed operation"; - return LDAP_PROTOCOL_ERROR; - } - op->o_noop = ctrl->ldctl_iscritical ? SLAP_CONTROL_CRITICAL : SLAP_CONTROL_NONCRITICAL;