diff options
author | Michael Adam <obnox@samba.org> | 2008-04-04 17:24:53 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-04 17:24:53 +0200 |
commit | ae790f9b89779a0fa1ba4ecfb5b99df160d222fd (patch) | |
tree | 990e50a84f6dae480867d93eb6cf212f5d4c7fe7 /source3/utils/net_registry.c | |
parent | 65088387c061aebd8a847857a5fc87ca7a9257f3 (diff) | |
download | samba-ae790f9b89779a0fa1ba4ecfb5b99df160d222fd.tar.gz samba-ae790f9b89779a0fa1ba4ecfb5b99df160d222fd.tar.bz2 samba-ae790f9b89779a0fa1ba4ecfb5b99df160d222fd.zip |
net: change split_hive_key() to properly allocate subkeyname
instead of returning a pointer into another string.
Michael
(This used to be commit 68d08ecf92be3444b759300237b2b7cf5238d022)
Diffstat (limited to 'source3/utils/net_registry.c')
-rw-r--r-- | source3/utils/net_registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index f21a1603cf..8a45dec21c 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -41,7 +41,7 @@ static WERROR open_hive(TALLOC_CTX *ctx, const char *path, WERROR werr; NT_USER_TOKEN *token = NULL; char *hivename = NULL; - const char *tmp_subkeyname = NULL; + char *tmp_subkeyname = NULL; TALLOC_CTX *tmp_ctx = talloc_stackframe(); if ((hive == NULL) || (subkeyname == NULL)) { |