summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-29 14:07:10 +0200
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:11 -0400
commitc52e019ae10ba01f97851c0d4578a64209633a41 (patch)
tree8349cd6681f137795598af8cc81b914bc9a9f4e2 /source3/rpc_server
parentc7ae6cb0464ed505fc0d44bb5095bb897c11d458 (diff)
downloadsamba-c52e019ae10ba01f97851c0d4578a64209633a41.tar.gz
samba-c52e019ae10ba01f97851c0d4578a64209633a41.tar.bz2
samba-c52e019ae10ba01f97851c0d4578a64209633a41.zip
s3-spoolss: Use the existing memory context for winreg_get_printer.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 198f424c85..22694bea0d 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6329,7 +6329,7 @@ WERROR _spoolss_EnumJobs(pipes_struct *p,
return WERR_BADFID;
}
- result = winreg_get_printer(talloc_tos(), p->server_info, NULL,
+ result = winreg_get_printer(p->mem_ctx, p->server_info, NULL,
lp_servicename(snum), &pinfo2);
if (!W_ERROR_IS_OK(result)) {
return result;
@@ -8317,7 +8317,7 @@ WERROR _spoolss_GetJob(pipes_struct *p,
return WERR_BADFID;
}
- result = winreg_get_printer(talloc_tos(), p->server_info, NULL,
+ result = winreg_get_printer(p->mem_ctx, p->server_info, NULL,
lp_servicename(snum), &pinfo2);
if (!W_ERROR_IS_OK(result)) {
return result;