git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7659107
)
r11594: ensure ldb_search() sets *res to NULL on failure (some of the updated
author
Andrew Tridgell
<tridge@samba.org>
Wed, 9 Nov 2005 08:07:38 +0000
(08:07 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:45:55 +0000
(13:45 -0500)
ldb_result code coud rely on that)
(This used to be commit
cd567bcb24125827c746c1c0902631b0e7c2cea5
)
source4/lib/ldb/common/ldb.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb.c
b/source4/lib/ldb/common/ldb.c
index 48911cad6b462fa870f47da73b896e00881af3b8..ea99bf3e8bc31d5942b980d868147b46b8214e30 100644
(file)
--- 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"));