summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-11-26 06:12:01 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:15 +0100
commit37039ea5b0b460b0ac088e1e902a28d2b4135625 (patch)
tree68cc0cae2ecbf33bea52dc0620112277147ce27c /source4/lib/ldb/ldb_tdb
parentd47b967b1361cbcc905a666487450ef381c57d01 (diff)
downloadsamba-37039ea5b0b460b0ac088e1e902a28d2b4135625.tar.gz
samba-37039ea5b0b460b0ac088e1e902a28d2b4135625.tar.bz2
samba-37039ea5b0b460b0ac088e1e902a28d2b4135625.zip
r26131: Ensure we show the right errors in the NULL base DN case. Based on
bug 5090 by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> Andrew Bartlett (This used to be commit cc2d0c9f15a9c687d212df14d8ffb6c60ad15242)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index bf6bd91fc2..da899c361e 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -530,10 +530,12 @@ int ltdb_search(struct ldb_module *module, struct ldb_request *req)
ldb_asprintf_errstring(module->ldb,
"NULL Base DN invalid for a base search");
ret = LDB_ERR_INVALID_DN_SYNTAX;
+ break;
case LDB_SCOPE_ONELEVEL:
ldb_asprintf_errstring(module->ldb,
"NULL Base DN invalid for a one-level search");
ret = LDB_ERR_INVALID_DN_SYNTAX;
+ break;
case LDB_SCOPE_SUBTREE:
default:
/* We accept subtree searches from a NULL base DN, ie over the whole DB */