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:
parent
46ea0d333e
commit
3b250d17d9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user