summaryrefslogtreecommitdiff
path: root/source4/lib/util/util_ldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/util/util_ldb.c')
-rw-r--r--source4/lib/util/util_ldb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/util/util_ldb.c b/source4/lib/util/util_ldb.c
index fab729c036..0465022edd 100644
--- a/source4/lib/util/util_ldb.c
+++ b/source4/lib/util/util_ldb.c
@@ -52,7 +52,8 @@ int gendb_search_v(struct ldb_context *ldb,
res = NULL;
- ret = ldb_search(ldb, basedn, scope, expr, attrs, &res);
+ ret = ldb_search(ldb, mem_ctx, &res, basedn, scope, attrs,
+ expr?"%s":NULL, expr);
if (ret == LDB_SUCCESS) {
talloc_steal(mem_ctx, res->msgs);