summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-21 15:47:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-21 15:47:34 +0200
commit19aec78aec846e5f66b3930a4053beea30318c4a (patch)
tree52afedf30741778b09b31d0444c9a786c8bda112 /source4/lib/registry
parentd4d4a9da832a4c0c5bb080eb3b7c837fc57da31d (diff)
downloadsamba-19aec78aec846e5f66b3930a4053beea30318c4a.tar.gz
samba-19aec78aec846e5f66b3930a4053beea30318c4a.tar.bz2
samba-19aec78aec846e5f66b3930a4053beea30318c4a.zip
Fix the build.
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index 018ea86d85..0aa44fa468 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -309,7 +309,7 @@ static WERROR ldb_get_default_value(TALLOC_CTX *mem_ctx, struct hive_key *k,
struct ldb_result *res;
int ret;
- ret = ldb_search(c, kd->dn, LDB_SCOPE_BASE, "", attrs, &res);
+ ret = ldb_search(c, mem_ctx, &res, kd->dn, LDB_SCOPE_BASE, attrs, "%s", "");
if (ret != LDB_SUCCESS) {
DEBUG(0, ("Error getting default value for '%s': %s\n",
@@ -373,7 +373,7 @@ static WERROR ldb_get_value(TALLOC_CTX *mem_ctx, struct hive_key *k,
} else {
/* normal value */
query = talloc_asprintf(mem_ctx, "(value=%s)", name);
- ret = ldb_search(c, kd->dn, &res, LDB_SCOPE_ONELEVEL, query, NULL, "%s", query);
+ ret = ldb_search(c, mem_ctx, &res, kd->dn, LDB_SCOPE_ONELEVEL, NULL, "%s", query);
talloc_free(query);
if (ret != LDB_SUCCESS) {