diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-09 08:07:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:55 -0500 |
commit | f613e18d1e587782e94ae614a88ee1df4aa0503e (patch) | |
tree | 6632c8875372b7ac881ab9aeaa1bab80a384179e /source4/lib/ldb | |
parent | 76591077389a05cc5d706326f1bf590ddf6eec5b (diff) | |
download | samba-f613e18d1e587782e94ae614a88ee1df4aa0503e.tar.gz samba-f613e18d1e587782e94ae614a88ee1df4aa0503e.tar.bz2 samba-f613e18d1e587782e94ae614a88ee1df4aa0503e.zip |
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)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 2 |
1 files changed, 2 insertions, 0 deletions
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")); |