From f613e18d1e587782e94ae614a88ee1df4aa0503e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Nov 2005 08:07:38 +0000 Subject: 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) --- source4/lib/ldb/common/ldb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/ldb/common/ldb.c') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 48911cad6b..ea99bf3e8b 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -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")); -- cgit