summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}