]> 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>
Mon, 30 Apr 2018 17:33:22 +0000 (17:33 +0000)
servers/slapd/controls.c

index 5599bd7b9d23092d2976390edb9a9297176a302a..60b2245734a7c3cf684f7d1d56313232a771e8bd 100644 (file)
@@ -1681,8 +1681,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;
        }