]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/controls.c
ITS#8840 Fix domainScope control to ensure the control value is absent as per Microso...
[openldap] / 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;
        }