diff options
Diffstat (limited to 'source4/lib')
-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")); |