summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_rootdse.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ldap_server/ldap_rootdse.c')
-rw-r--r--source4/ldap_server/ldap_rootdse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_rootdse.c b/source4/ldap_server/ldap_rootdse.c
index 631b38d383..09f0740680 100644
--- a/source4/ldap_server/ldap_rootdse.c
+++ b/source4/ldap_server/ldap_rootdse.c
@@ -315,8 +315,7 @@ static NTSTATUS rootdse_Search(struct ldapsrv_partition *partition, struct ldaps
const char **attrs = NULL;
if (r->scope != LDAP_SEARCH_SCOPE_BASE) {
- count = -1;
- goto no_base_scope;
+ return NT_STATUS_INVALID_PARAMETER;
}
local_ctx = talloc_named(call, 0, "rootdse_Search local memory context");