1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r11594: ensure ldb_search() sets *res to NULL on failure (some of the updated

ldb_result code coud rely on that)
(This used to be commit cd567bcb24125827c746c1c0902631b0e7c2cea5)
This commit is contained in:
Andrew Tridgell 2005-11-09 08:07:38 +00:00 committed by Gerald (Jerry) Carter
parent 7659107738
commit f613e18d1e

View File

@ -235,6 +235,8 @@ int ldb_search(struct ldb_context *ldb,
struct ldb_parse_tree *tree;
int ret;
(*res) = NULL;
request = talloc(ldb, struct ldb_request);
if (request == NULL) {
ldb_set_errstring(ldb->modules, talloc_strdup(ldb, "Not Enough memory"));