summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr/srv_spoolss.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-12 00:54:40 +0100
committerGünther Deschner <gd@samba.org>2009-02-12 00:55:15 +0100
commit6d3dbdf2fa2f9424b838676a79311d3a575fcaf2 (patch)
treee817895b0a8ff04d1a9895f0d791592741a313f9 /librpc/gen_ndr/srv_spoolss.c
parent3f9a11993592f989766514da5d2622a62319398a (diff)
downloadsamba-6d3dbdf2fa2f9424b838676a79311d3a575fcaf2.tar.gz
samba-6d3dbdf2fa2f9424b838676a79311d3a575fcaf2.tar.bz2
samba-6d3dbdf2fa2f9424b838676a79311d3a575fcaf2.zip
s3: re-run make samba3-idl.
Guenther
Diffstat (limited to 'librpc/gen_ndr/srv_spoolss.c')
-rw-r--r--librpc/gen_ndr/srv_spoolss.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/librpc/gen_ndr/srv_spoolss.c b/librpc/gen_ndr/srv_spoolss.c
index 60dc2f03f4..1f8c89a53f 100644
--- a/librpc/gen_ndr/srv_spoolss.c
+++ b/librpc/gen_ndr/srv_spoolss.c
@@ -5096,6 +5096,13 @@ static bool api_spoolss_RouterReplyPrinterEx(pipes_struct *p)
NDR_PRINT_IN_DEBUG(spoolss_RouterReplyPrinterEx, r);
}
+ ZERO_STRUCT(r->out);
+ r->out.reply_result = talloc_zero(r, uint32_t);
+ if (r->out.reply_result == NULL) {
+ talloc_free(r);
+ return false;
+ }
+
r->out.result = _spoolss_RouterReplyPrinterEx(p, r);
if (p->rng_fault_state) {
@@ -8071,6 +8078,12 @@ NTSTATUS rpc_spoolss_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
case NDR_SPOOLSS_ROUTERREPLYPRINTEREX: {
struct spoolss_RouterReplyPrinterEx *r = (struct spoolss_RouterReplyPrinterEx *)_r;
+ ZERO_STRUCT(r->out);
+ r->out.reply_result = talloc_zero(mem_ctx, uint32_t);
+ if (r->out.reply_result == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+
r->out.result = _spoolss_RouterReplyPrinterEx(cli->pipes_struct, r);
return NT_STATUS_OK;
}