diff options
author | Günther Deschner <gd@samba.org> | 2010-03-04 18:21:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-05 15:18:00 +0100 |
commit | 8e499ec847fb2d342a544edf705bb9398967ca24 (patch) | |
tree | e3797ab835dee25ff9fa10e2a7cc5c8f85ec87ab /source4/rpc_server | |
parent | 7643afa70e879efc059c75b8309bf89dbb3c459b (diff) | |
download | samba-8e499ec847fb2d342a544edf705bb9398967ca24.tar.gz samba-8e499ec847fb2d342a544edf705bb9398967ca24.tar.bz2 samba-8e499ec847fb2d342a544edf705bb9398967ca24.zip |
s4-spoolss: fix spoolss_GetPrinterData implementation after IDL change.
Guenther
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/spoolss/dcesrv_spoolss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c index 2921b6b596..30ed721b12 100644 --- a/source4/rpc_server/spoolss/dcesrv_spoolss.c +++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c @@ -581,7 +581,7 @@ static WERROR dcesrv_spoolss_GetPrinterData(struct dcesrv_call_state *dce_call, r->out.needed = talloc_zero(mem_ctx, uint32_t); W_ERROR_HAVE_NO_MEMORY(r->out.needed); - r->out.data = talloc_zero(mem_ctx, union spoolss_PrinterData); + r->out.data = talloc_zero_array(mem_ctx, uint8_t, r->in.needed); W_ERROR_HAVE_NO_MEMORY(r->out.data); DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); @@ -600,7 +600,6 @@ static WERROR dcesrv_spoolss_GetPrinterData(struct dcesrv_call_state *dce_call, W_ERROR_NOT_OK_RETURN(status); - *r->out.needed = ndr_size_spoolss_PrinterData(r->out.data, *r->out.type, ic, 0); *r->out.type = SPOOLSS_BUFFER_OK(*r->out.type, REG_NONE); r->out.data = SPOOLSS_BUFFER_OK(r->out.data, r->out.data); return SPOOLSS_BUFFER_OK(WERR_OK, WERR_MORE_DATA); |