diff options
-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 9aaa7cfb10..d6830dace6 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -6849,6 +6849,7 @@ static WERROR enumprinterdrivers_level_by_architecture(TALLOC_CTX *mem_ctx, static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, const char *servername, const char *architecture, uint32_t level, @@ -6867,7 +6868,7 @@ static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx, result = enumprinterdrivers_level_by_architecture(mem_ctx, server_info, - smbd_messaging_context(), + msg_ctx, servername, archi_table[a].long_archi, level, @@ -6888,7 +6889,7 @@ static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx, return enumprinterdrivers_level_by_architecture(mem_ctx, server_info, - smbd_messaging_context(), + msg_ctx, servername, architecture, level, @@ -6926,6 +6927,7 @@ WERROR _spoolss_EnumPrinterDrivers(struct pipes_struct *p, result = enumprinterdrivers_level(p->mem_ctx, p->server_info, + p->msg_ctx, cservername, r->in.environment, r->in.level, |