summaryrefslogtreecommitdiff
path: root/source/utils/net_rpc_registry.c
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
commite73a418b5b0100936efb4c1133da3cfe3fcb61cd (patch)
tree1372dc9a9f4b1b149fb0524c189047f673c2a17f /source/utils/net_rpc_registry.c
parente7e6b8b5e0b00cc0746db4e9baa2e860074f903a (diff)
downloadsamba-e73a418b5b0100936efb4c1133da3cfe3fcb61cd.tar.gz
r21462: Fix EnumValue (?)
Diffstat (limited to 'source/utils/net_rpc_registry.c')
-rw-r--r--source/utils/net_rpc_registry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils/net_rpc_registry.c b/source/utils/net_rpc_registry.c
index 0a3ceb2233c..f1c046c1817 100644
--- a/source/utils/net_rpc_registry.c
+++ b/source/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),