summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr/srv_spoolss.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-20 12:57:13 +0100
committerGünther Deschner <gd@samba.org>2009-11-23 11:44:43 +0100
commit366946f29b58a6efa7acbfe2a74b2ddbad4d32a2 (patch)
treef222f22baf67f26f83dbdc6cd4333cd5f2195468 /librpc/gen_ndr/srv_spoolss.c
parent579bb30188eac3393dfa0d72fd825b7acf8444c9 (diff)
downloadsamba-366946f29b58a6efa7acbfe2a74b2ddbad4d32a2.tar.gz
samba-366946f29b58a6efa7acbfe2a74b2ddbad4d32a2.tar.bz2
samba-366946f29b58a6efa7acbfe2a74b2ddbad4d32a2.zip
spoolss: fix spoolss_EnumPrinterKey IDL.
Guenther
Diffstat (limited to 'librpc/gen_ndr/srv_spoolss.c')
-rw-r--r--librpc/gen_ndr/srv_spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/gen_ndr/srv_spoolss.c b/librpc/gen_ndr/srv_spoolss.c
index c3266dc5af..6ca334b3d2 100644
--- a/librpc/gen_ndr/srv_spoolss.c
+++ b/librpc/gen_ndr/srv_spoolss.c
@@ -6325,7 +6325,7 @@ static bool api_spoolss_EnumPrinterKey(pipes_struct *p)
}
ZERO_STRUCT(r->out);
- r->out.key_buffer = talloc_zero(r, const char **);
+ r->out.key_buffer = talloc_zero_array(r, uint16_t, r->in.offered / 2);
if (r->out.key_buffer == NULL) {
talloc_free(r);
return false;
@@ -9504,7 +9504,7 @@ NTSTATUS rpc_spoolss_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
case NDR_SPOOLSS_ENUMPRINTERKEY: {
struct spoolss_EnumPrinterKey *r = (struct spoolss_EnumPrinterKey *)_r;
ZERO_STRUCT(r->out);
- r->out.key_buffer = talloc_zero(mem_ctx, const char **);
+ r->out.key_buffer = talloc_zero_array(mem_ctx, uint16_t, r->in.offered / 2);
if (r->out.key_buffer == NULL) {
return NT_STATUS_NO_MEMORY;
}