summaryrefslogtreecommitdiff
path: root/source4/lib/registry/dir.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 19:18:56 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 22:31:00 +0100
commit43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a (patch)
treec10af94c0148af2ad934d1804c7a2beb406cc641 /source4/lib/registry/dir.c
parent64f51380aad484d020093c926512ec79a35bcb93 (diff)
downloadsamba-43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a.tar.gz
samba-43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a.tar.bz2
samba-43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a.zip
s4:registry - adaptions for "add memory contexts for delete value/key functions"
Diffstat (limited to 'source4/lib/registry/dir.c')
-rw-r--r--source4/lib/registry/dir.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/lib/registry/dir.c b/source4/lib/registry/dir.c
index 4380dce74e..8fcf27b66e 100644
--- a/source4/lib/registry/dir.c
+++ b/source4/lib/registry/dir.c
@@ -108,7 +108,8 @@ static WERROR reg_dir_delete_recursive(const char *name)
return WERR_GENERAL_FAILURE;
}
-static WERROR reg_dir_del_key(const struct hive_key *k, const char *name)
+static WERROR reg_dir_del_key(TALLOC_CTX *mem_ctx, const struct hive_key *k,
+ const char *name)
{
struct dir_key *dk = talloc_get_type(k, struct dir_key);
char *child = talloc_asprintf(NULL, "%s/%s", dk->path, name);
@@ -380,10 +381,11 @@ static WERROR reg_dir_enum_value(TALLOC_CTX *mem_ctx,
}
-static WERROR reg_dir_del_value (struct hive_key *key, const char *name)
+static WERROR reg_dir_del_value(TALLOC_CTX *mem_ctx,
+ struct hive_key *key, const char *name)
{
const struct dir_key *dk = talloc_get_type(key, struct dir_key);
- char *path = talloc_asprintf(key, "%s/%s", dk->path, name);
+ char *path = talloc_asprintf(mem_ctx, "%s/%s", dk->path, name);
if (unlink(path) < 0) {
talloc_free(path);
if (errno == ENOENT)