summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ildap
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-10-04 05:41:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:22 -0500
commit63d4cb48029e8bd607604e40bbbc46d20d917d80 (patch)
tree8862b8af38fdd6517c7321de35d94a0c718a1b65 /source4/lib/ldb/ldb_ildap
parent7b38c1db1bb8a91d85dc02af8a8c3169051f8fb6 (diff)
downloadsamba-63d4cb48029e8bd607604e40bbbc46d20d917d80.tar.gz
samba-63d4cb48029e8bd607604e40bbbc46d20d917d80.tar.bz2
samba-63d4cb48029e8bd607604e40bbbc46d20d917d80.zip
r10708: a bit more error checking in the idap ldb backend
(This used to be commit 63ebaad393e38b28c8f97f33e2b22f2445733405)
Diffstat (limited to 'source4/lib/ldb/ldb_ildap')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 5ea49a8216..4ff8723d44 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -155,6 +155,11 @@ static int ildb_search_bytree(struct ldb_module *module, const struct ldb_dn *ba
search_base = ldb_dn_linearize(ildb, base);
}
if (search_base == NULL) {
+ ldb_set_errstring(module, talloc_asprintf(module, "Unable to determine baseDN"));
+ return -1;
+ }
+ if (tree == NULL) {
+ ldb_set_errstring(module, talloc_asprintf(module, "Invalid expression parse tree"));
return -1;
}