mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r10708: a bit more error checking in the idap ldb backend
This commit is contained in:
parent
a973197d3e
commit
63ebaad393
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user