From: Andrew Bartlett Date: Tue, 16 Dec 2008 08:01:35 +0000 (+0100) Subject: s4:rootdse: fix the logic to indentify a rootdse search X-Git-Tag: samba-4.0.0alpha6~462^2~14^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d68ad8218ff104da35c2ed5b389c18926484c3af;p=thirdparty%2Fsamba.git s4:rootdse: fix the logic to indentify a rootdse search Signed-off-by: Stefan Metzmacher --- diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index 04a97fcd3bb..461a554ec05 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -301,8 +301,7 @@ static int rootdse_search(struct ldb_module *module, struct ldb_request *req) int ret; /* see if its for the rootDSE - only a base search on the "" DN qualifies */ - if (req->op.search.scope != LDB_SCOPE_BASE || - ( ! ldb_dn_is_null(req->op.search.base))) { + if (!(req->op.search.scope == LDB_SCOPE_BASE && ldb_dn_is_null(req->op.search.base))) { /* Otherwise, pass down to the rest of the stack */ return ldb_next_request(module, req); }