]> git.sur5r.net Git - openldap/commitdiff
ITS#8840 Fix domainScope control to ensure the control value is absent as per Microso...
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 30 Apr 2018 17:27:36 +0000 (17:27 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 3 Jul 2018 23:32:38 +0000 (23:32 +0000)
servers/slapd/controls.c

index b8edd39bc545e6110b50a97a4b29e4de562c7117..16b5806331a87ba4c858eb041354f5eb7e4e2cbf 100644 (file)
@@ -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;
        }