diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index f2df763b4f..66d3a6437d 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -1586,9 +1586,11 @@ WERROR cli_spoolss_enumprinterdata(struct cli_state *cli, TALLOC_CTX *mem_ctx, spoolss_io_q_enumprinterdata, spoolss_io_r_enumprinterdata, WERR_GENERAL_FAILURE ); - - *value_needed = out.realvaluesize; - *data_needed = out.realdatasize; + + if ( value_needed ) + *value_needed = out.realvaluesize; + if ( data_offered ) + *data_needed = out.realdatasize; if (!W_ERROR_IS_OK(out.status)) return out.status; |