summaryrefslogtreecommitdiff
path: root/source3/rpc_server/spoolss
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-02-08 17:57:02 +0100
committerDavid Disseldorp <ddiss@samba.org>2012-06-26 16:10:39 +0200
commit9a296efa9e98594e1dd435dfb91dae440ddf98aa (patch)
tree77c7a73b63a0ce557232ec4e3e36f0e3a60cb001 /source3/rpc_server/spoolss
parent2f85c1fcf268e447303990e48b49b149020320d0 (diff)
downloadsamba-9a296efa9e98594e1dd435dfb91dae440ddf98aa.tar.gz
samba-9a296efa9e98594e1dd435dfb91dae440ddf98aa.tar.bz2
samba-9a296efa9e98594e1dd435dfb91dae440ddf98aa.zip
s3-printing: pass a talloc ctx to unpack_pjob
Rather than allocating the devicemode on a null context.
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 7befe7fd8f..8278ae8390 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -9302,7 +9302,7 @@ static WERROR getjob_level_2(TALLOC_CTX *mem_ctx,
* a failure condition
*/
- devmode = print_job_devmode(lp_const_servicename(snum), jobid);
+ devmode = print_job_devmode(mem_ctx, lp_const_servicename(snum), jobid);
if (!devmode) {
result = spoolss_create_default_devmode(mem_ctx,
pinfo2->printername,