From 3b250d17d915718700a694fececcef6fbe059fe1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 17 Mar 2008 01:09:31 +0100 Subject: registry: explicitly use talloc context instead of talloc_tos() in regdb_fetch_keys(). Michael (This used to be commit 93ea27a3e23e489a2af3c778684f8a8a4594b567) --- source3/registry/reg_backend_db.c | 4 ++-- 1 file 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; } -- cgit