summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-07-25 19:41:31 +0200
committerAndreas Schneider <asn@samba.org>2011-07-27 08:49:58 +0200
commit8831402596fab30f56ce6600c72a575e2e73e4d3 (patch)
tree336a4450ecb2ea368426761b7eb731d7a3fadfe1 /source3
parent5045281e17d7f90e1f31b7bf9ffdea9b59b99373 (diff)
downloadsamba-8831402596fab30f56ce6600c72a575e2e73e4d3.tar.gz
samba-8831402596fab30f56ce6600c72a575e2e73e4d3.tar.bz2
samba-8831402596fab30f56ce6600c72a575e2e73e4d3.zip
s3-rpc_client: Fix memory context in winreg_enum_printer_dataex().
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_winreg_spoolss.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_winreg_spoolss.c b/source3/rpc_client/cli_winreg_spoolss.c
index e3d8a3d205..2a6a8d1986 100644
--- a/source3/rpc_client/cli_winreg_spoolss.c
+++ b/source3/rpc_client/cli_winreg_spoolss.c
@@ -2187,9 +2187,8 @@ WERROR winreg_enum_printer_dataex(TALLOC_CTX *mem_ctx,
}
}
- enum_names = talloc_move(mem_ctx, &enum_names);
- enum_types = talloc_move(mem_ctx, &enum_types);
- enum_data_blobs = talloc_move(mem_ctx, &enum_data_blobs);
+ talloc_steal(enum_values, enum_names);
+ talloc_steal(enum_values, enum_data_blobs);
*pnum_values = num_values;
if (penum_values) {