diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 10:56:50 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 16:03:19 +0200 |
commit | f776d107a1459d943a1f5797d48d58ae24d50c39 (patch) | |
tree | 12b7785a69a1309f5cbba462944c56160856dcb4 /source3/rpc_server | |
parent | 1af73b04fc30c6be8a9fa792e2ecdb1affb9996b (diff) | |
download | samba-f776d107a1459d943a1f5797d48d58ae24d50c39.tar.gz samba-f776d107a1459d943a1f5797d48d58ae24d50c39.tar.bz2 samba-f776d107a1459d943a1f5797d48d58ae24d50c39.zip |
s3: Lift the smbd_messaging_context from set_printer_hnd_name
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 8789b86bf3..5e24b76cd2 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -455,6 +455,7 @@ static bool set_printer_hnd_printertype(Printer_entry *Printer, const char *hand static bool set_printer_hnd_name(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, Printer_entry *Printer, const char *handlename) { @@ -539,7 +540,7 @@ static bool set_printer_hnd_name(TALLOC_CTX *mem_ctx, result = winreg_get_printer(mem_ctx, server_info, - smbd_messaging_context(), + msg_ctx, servername, sname, &info2); @@ -610,7 +611,8 @@ static bool open_printer_hnd(struct pipes_struct *p, struct policy_handle *hnd, return false; } - if (!set_printer_hnd_name(p->mem_ctx, p->server_info, new_printer, name)) { + if (!set_printer_hnd_name(p->mem_ctx, p->server_info, p->msg_ctx, + new_printer, name)) { close_printer_handle(p, hnd); return false; } |