From: Quanah Gibson-Mount Date: Mon, 30 Apr 2018 17:27:36 +0000 (+0000) Subject: ITS#8840 Fix domainScope control to ensure the control value is absent as per Microso... X-Git-Url: https://git.sur5r.net/?p=openldap;a=commitdiff_plain;h=59681e0eb305262aeb93675c66f21727bfc7ab98 ITS#8840 Fix domainScope control to ensure the control value is absent as per Microsoft specification (https://msdn.microsoft.com/en-us/library/aa366979%28v=vs.85%29.aspx). --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index b8edd39bc5..16b5806331 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -1660,8 +1660,8 @@ static int parseDomainScope ( return LDAP_PROTOCOL_ERROR; } - if ( BER_BVISNULL( &ctrl->ldctl_value )) { - rs->sr_text = "domainScope control value not empty"; + if ( !BER_BVISNULL( &ctrl->ldctl_value )) { + rs->sr_text = "domainScope control value not absent"; return LDAP_PROTOCOL_ERROR; }