From 9bfca0bea0521b41c7bbf1ccbd35ce2e4cbb31ef Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 7 Feb 2009 01:49:55 +0100 Subject: s4-spoolss: try to fix dcesrv_spoolss_GetPrinterData. Guenther --- source4/rpc_server/spoolss/dcesrv_spoolss.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit