summaryrefslogtreecommitdiff
path: root/source4/rpc_server/spoolss
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-07 01:49:55 +0100
committerGünther Deschner <gd@samba.org>2009-02-07 01:52:01 +0100
commit9bfca0bea0521b41c7bbf1ccbd35ce2e4cbb31ef (patch)
tree5a3a055b8aa07f95ff7f479808fa06e17cd549e7 /source4/rpc_server/spoolss
parent2f44170836a2011e65c069109f7153568834bc12 (diff)
downloadsamba-9bfca0bea0521b41c7bbf1ccbd35ce2e4cbb31ef.tar.gz
samba-9bfca0bea0521b41c7bbf1ccbd35ce2e4cbb31ef.tar.bz2
samba-9bfca0bea0521b41c7bbf1ccbd35ce2e4cbb31ef.zip
s4-spoolss: try to fix dcesrv_spoolss_GetPrinterData.
Guenther
Diffstat (limited to 'source4/rpc_server/spoolss')
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index 2ba1a65155..e13749754f 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -564,6 +564,9 @@ static WERROR dcesrv_spoolss_GetPrinterData(struct dcesrv_call_state *dce_call,
if (!handle)
return WERR_BADFID;
+ r->out.type = talloc_zero(mem_ctx, enum spoolss_PrinterDataType);
+ W_ERROR_HAVE_NO_MEMORY(r->out.type);
+
switch (handle->type) {
case NTPTR_HANDLE_SERVER:
status = ntptr_GetPrintServerData(handle, mem_ctx, r);