summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 03b4ba043c..03c04d2df8 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3957,6 +3957,7 @@ static WERROR enum_all_printers_info_1_local(TALLOC_CTX *mem_ctx,
static WERROR enum_all_printers_info_1_name(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
const char *name,
union spoolss_PrinterInfo **info,
uint32_t *count)
@@ -3973,8 +3974,7 @@ static WERROR enum_all_printers_info_1_name(TALLOC_CTX *mem_ctx,
return WERR_INVALID_NAME;
}
- return enum_all_printers_info_1(mem_ctx, server_info,
- smbd_messaging_context(),
+ return enum_all_printers_info_1(mem_ctx, server_info, msg_ctx,
PRINTER_ENUM_ICON8, info, count);
}
@@ -4051,7 +4051,9 @@ static WERROR enumprinters_level1(TALLOC_CTX *mem_ctx,
}
if (flags & PRINTER_ENUM_NAME) {
- return enum_all_printers_info_1_name(mem_ctx, server_info, name, info, count);
+ return enum_all_printers_info_1_name(mem_ctx, server_info,
+ smbd_messaging_context(),
+ name, info, count);
}
if (flags & PRINTER_ENUM_NETWORK) {