diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-25 19:41:31 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-07-27 08:49:58 +0200 |
commit | 8831402596fab30f56ce6600c72a575e2e73e4d3 (patch) | |
tree | 336a4450ecb2ea368426761b7eb731d7a3fadfe1 | |
parent | 5045281e17d7f90e1f31b7bf9ffdea9b59b99373 (diff) | |
download | samba-8831402596fab30f56ce6600c72a575e2e73e4d3.tar.gz samba-8831402596fab30f56ce6600c72a575e2e73e4d3.tar.bz2 samba-8831402596fab30f56ce6600c72a575e2e73e4d3.zip |
s3-rpc_client: Fix memory context in winreg_enum_printer_dataex().
-rw-r--r-- | source3/rpc_client/cli_winreg_spoolss.c | 5 |
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) { |