From 8831402596fab30f56ce6600c72a575e2e73e4d3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 25 Jul 2011 19:41:31 +0200 Subject: s3-rpc_client: Fix memory context in winreg_enum_printer_dataex(). --- source3/rpc_client/cli_winreg_spoolss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/rpc_client') 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) { -- cgit