summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-10 14:20:22 +0100
committerGünther Deschner <gd@samba.org>2009-12-10 17:48:50 +0100
commitf20effc437970d826c5bd4f047ff47e23e7a1a73 (patch)
tree0c1f5c0efb90f29ac5b5572f154a819477c83392 /source3/rpc_client
parentfa413d167bc3ea9aff3dcff97152ef07a1173939 (diff)
downloadsamba-f20effc437970d826c5bd4f047ff47e23e7a1a73.tar.gz
samba-f20effc437970d826c5bd4f047ff47e23e7a1a73.tar.bz2
samba-f20effc437970d826c5bd4f047ff47e23e7a1a73.zip
s3-spoolss: fix enumprinter key client and server.
Guenther
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_spoolss.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index 047cb709ac..d0781a0e65 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -810,11 +810,13 @@ WERROR rpccli_spoolss_enumprinterkey(struct rpc_pipe_client *cli,
NTSTATUS status;
WERROR werror;
uint32_t needed;
- struct spoolss_StringArray2 _key_buffer;
+ union spoolss_KeyNames _key_buffer;
+ uint32_t _ndr_size;
status = rpccli_spoolss_EnumPrinterKey(cli, mem_ctx,
handle,
key_name,
+ &_ndr_size,
&_key_buffer,
offered,
&needed,
@@ -825,13 +827,14 @@ WERROR rpccli_spoolss_enumprinterkey(struct rpc_pipe_client *cli,
status = rpccli_spoolss_EnumPrinterKey(cli, mem_ctx,
handle,
key_name,
+ &_ndr_size,
&_key_buffer,
offered,
&needed,
&werror);
}
- *key_buffer = _key_buffer.string;
+ *key_buffer = _key_buffer.string_array;
return werror;
}