summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 33d47df33a..7a4c9c9263 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -9455,7 +9455,7 @@ WERROR _spoolss_XcvData(pipes_struct *p,
*r->out.status_code = 0;
- if (r->out.out_data && r->in.out_data_size && out_data.length) {
+ if (r->out.out_data && out_data.data && r->in.out_data_size && out_data.length) {
memcpy(r->out.out_data, out_data.data,
MIN(r->in.out_data_size, out_data.length));
}