summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr/srv_spoolss.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-19 13:06:11 +0100
committerGünther Deschner <gd@samba.org>2009-02-19 13:06:11 +0100
commit7d44cd50e8b420c6981ff93f42085ff664b686c5 (patch)
treed61f6ee606b93760d049ede14a7c494bfe1e5c90 /librpc/gen_ndr/srv_spoolss.c
parent1852cd0a6075279d48689a2c4c1cd4e25d2e3452 (diff)
downloadsamba-7d44cd50e8b420c6981ff93f42085ff664b686c5.tar.gz
samba-7d44cd50e8b420c6981ff93f42085ff664b686c5.tar.bz2
samba-7d44cd50e8b420c6981ff93f42085ff664b686c5.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.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/librpc/gen_ndr/srv_spoolss.c b/librpc/gen_ndr/srv_spoolss.c
index f48cf51b9b..f6c17cb1fa 100644
--- a/librpc/gen_ndr/srv_spoolss.c
+++ b/librpc/gen_ndr/srv_spoolss.c
@@ -1334,6 +1334,19 @@ static bool api_spoolss_GetPrintProcessorDirectory(pipes_struct *p)
NDR_PRINT_IN_DEBUG(spoolss_GetPrintProcessorDirectory, r);
}
+ ZERO_STRUCT(r->out);
+ r->out.info = talloc_zero(r, union spoolss_PrintProcessorDirectoryInfo);
+ if (r->out.info == NULL) {
+ talloc_free(r);
+ return false;
+ }
+
+ r->out.needed = talloc_zero(r, uint32_t);
+ if (r->out.needed == NULL) {
+ talloc_free(r);
+ return false;
+ }
+
r->out.result = _spoolss_GetPrintProcessorDirectory(p, r);
if (p->rng_fault_state) {
@@ -7731,6 +7744,17 @@ NTSTATUS rpc_spoolss_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
case NDR_SPOOLSS_GETPRINTPROCESSORDIRECTORY: {
struct spoolss_GetPrintProcessorDirectory *r = (struct spoolss_GetPrintProcessorDirectory *)_r;
+ ZERO_STRUCT(r->out);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_PrintProcessorDirectoryInfo);
+ if (r->out.info == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+
+ r->out.needed = talloc_zero(mem_ctx, uint32_t);
+ if (r->out.needed == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+
r->out.result = _spoolss_GetPrintProcessorDirectory(cli->pipes_struct, r);
return NT_STATUS_OK;
}