summaryrefslogtreecommitdiff
path: root/source3/registry/reg_backend_db.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-17 01:09:31 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 08:22:33 +0100
commit3b250d17d915718700a694fececcef6fbe059fe1 (patch)
tree98833172a93bb1f8539424461427d6a892b66d98 /source3/registry/reg_backend_db.c
parent46ea0d333e4f967c1e769339dfa3efcf1ae8c77d (diff)
downloadsamba-3b250d17d915718700a694fececcef6fbe059fe1.tar.gz
samba-3b250d17d915718700a694fececcef6fbe059fe1.tar.bz2
samba-3b250d17d915718700a694fececcef6fbe059fe1.zip
registry: explicitly use talloc context instead of talloc_tos()
in regdb_fetch_keys(). Michael (This used to be commit 93ea27a3e23e489a2af3c778684f8a8a4594b567)
Diffstat (limited to 'source3/registry/reg_backend_db.c')
-rw-r--r--source3/registry/reg_backend_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 6f8f95e7b5..bac75fae14 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -652,13 +652,13 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
DEBUG(11,("regdb_fetch_keys: Enter key => [%s]\n", key ? key : "NULL"));
- path = talloc_strdup(talloc_tos(), key);
+ path = talloc_strdup(frame, key);
if (!path) {
goto fail;
}
/* convert to key format */
- path = talloc_string_sub(talloc_tos(), path, "\\", "/");
+ path = talloc_string_sub(frame, path, "\\", "/");
if (!path) {
goto fail;
}