summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 17:32:21 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:39 +0200
commitf0896759cef9de8ae4a4b5eb2d26586fb10bbf39 (patch)
tree4b59e3a439868d3ba6c145136ff478ae9d7c0697 /source3
parent18ff84b089cbbdf5c29fc678417090caa0ecd8d1 (diff)
downloadsamba-f0896759cef9de8ae4a4b5eb2d26586fb10bbf39.tar.gz
samba-f0896759cef9de8ae4a4b5eb2d26586fb10bbf39.tar.bz2
samba-f0896759cef9de8ae4a4b5eb2d26586fb10bbf39.zip
s3: Lift the server_messaging_context from spoolss_setjob_1
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 080c5f350a..cec0b7138e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6695,6 +6695,7 @@ WERROR _spoolss_ScheduleJob(struct pipes_struct *p,
****************************************************************/
static WERROR spoolss_setjob_1(TALLOC_CTX *mem_ctx,
+ struct messaging_context *msg_ctx,
const char *printer_name,
uint32_t job_id,
struct spoolss_SetJobInfo1 *r)
@@ -6709,8 +6710,7 @@ static WERROR spoolss_setjob_1(TALLOC_CTX *mem_ctx,
return WERR_OK;
}
- if (!print_job_set_name(server_event_context(),
- server_messaging_context(),
+ if (!print_job_set_name(server_event_context(), msg_ctx,
printer_name, job_id, r->document_name)) {
return WERR_BADFID;
}
@@ -6775,7 +6775,8 @@ WERROR _spoolss_SetJob(struct pipes_struct *p,
switch (r->in.ctr->level) {
case 1:
- errcode = spoolss_setjob_1(p->mem_ctx, lp_const_servicename(snum),
+ errcode = spoolss_setjob_1(p->mem_ctx, p->msg_ctx,
+ lp_const_servicename(snum),
r->in.job_id,
r->in.ctr->info.info1);
break;