summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 03c04d2df8..e9ba4fdc6c 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3984,6 +3984,7 @@ static WERROR enum_all_printers_info_1_name(TALLOC_CTX *mem_ctx,
static WERROR enum_all_printers_info_1_network(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)
@@ -4008,8 +4009,7 @@ static WERROR enum_all_printers_info_1_network(TALLOC_CTX *mem_ctx,
return WERR_CAN_NOT_COMPLETE;
}
- 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_NAME, info, count);
}
@@ -4057,7 +4057,9 @@ static WERROR enumprinters_level1(TALLOC_CTX *mem_ctx,
}
if (flags & PRINTER_ENUM_NETWORK) {
- return enum_all_printers_info_1_network(mem_ctx, server_info, name, info, count);
+ return enum_all_printers_info_1_network(mem_ctx, server_info,
+ smbd_messaging_context(),
+ name, info, count);
}
return WERR_OK; /* NT4sp5 does that */