1
0
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:
Andrew Tridgell 2005-10-04 05:41:05 +00:00 committed by Gerald (Jerry) Carter
parent a973197d3e
commit 63ebaad393

View File

@ -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;
}