summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;