summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:05:46 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:21 +0200
commitada007d971dfa429fa6add8bfb8436cc824cd123 (patch)
tree8da4b5311fb0b80fd4e6999b1522d235e9097527 /source3
parent2c0e63067b61461368fe7b725b732274101ecd95 (diff)
downloadsamba-ada007d971dfa429fa6add8bfb8436cc824cd123.tar.gz
samba-ada007d971dfa429fa6add8bfb8436cc824cd123.tar.bz2
samba-ada007d971dfa429fa6add8bfb8436cc824cd123.zip
s3: Lift the smbd_messaging_context from enum_all_printers_info_1_network
Diffstat (limited to 'source3')
-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 */