1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

registry: explicitly use talloc context instead of talloc_tos()

in regdb_fetch_keys().

Michael
(This used to be commit 93ea27a3e23e489a2af3c778684f8a8a4594b567)
This commit is contained in:
Michael Adam 2008-03-17 01:09:31 +01:00
parent 46ea0d333e
commit 3b250d17d9

View File

@ -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;
}