]> 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 960a7f7ea455ddf908c0afc41316f94bafbe1285..60b2245734a7c3cf684f7d1d56313232a771e8bd 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2017 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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;
        }