summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-02-20 13:43:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:06 -0500
commit1052cadbae7bf71a0575b06e8ac7ff52c7fb95ee (patch)
treef4f5439a2e2d9efadabc96ae6c9b56e14acb8a17 /source3/utils
parentb45442e46d595337c17829aed2d846a8c8963e6e (diff)
downloadsamba-1052cadbae7bf71a0575b06e8ac7ff52c7fb95ee.tar.gz
samba-1052cadbae7bf71a0575b06e8ac7ff52c7fb95ee.tar.bz2
samba-1052cadbae7bf71a0575b06e8ac7ff52c7fb95ee.zip
r21462: Fix EnumValue (?)
(This used to be commit e73a418b5b0100936efb4c1133da3cfe3fcb61cd)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_registry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 0a3ceb2233..f1c046c181 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -263,11 +263,12 @@ static NTSTATUS registry_enumvalues(TALLOC_CTX *ctx,
name_buf.size = max_valnamelen + 2;
data_size = max_valbufsize;
+ data = TALLOC(mem_ctx, data_size);
value_length = 0;
status = rpccli_winreg_EnumValue(pipe_hnd, mem_ctx, key_hnd,
i, &name_buf, &type,
- &data, &data_size,
+ data, &data_size,
&value_length );
if ( W_ERROR_EQUAL(ntstatus_to_werror(status),