summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/nt_printing.h1
-rw-r--r--source3/printing/nt_printing.c4
-rw-r--r--source3/smbd/server_reload.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h
index e7e2536ce6..c98085b421 100644
--- a/source3/include/nt_printing.h
+++ b/source3/include/nt_printing.h
@@ -285,6 +285,7 @@ bool print_time_access_check(struct auth_serversupplied_info *server_info,
void nt_printer_remove(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
const char *printer);
#endif /* NT_PRINTING_H_ */
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 4afddd31c2..c44a0ec2c7 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2205,12 +2205,12 @@ bool print_time_access_check(struct auth_serversupplied_info *server_info,
void nt_printer_remove(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
const char *printer)
{
WERROR result;
- result = winreg_delete_printer_key(mem_ctx, server_info,
- smbd_messaging_context(),
+ result = winreg_delete_printer_key(mem_ctx, server_info, msg_ctx,
printer, "");
if (!W_ERROR_IS_OK(result)) {
DEBUG(0, ("nt_printer_remove: failed to remove rpinter %s",
diff --git a/source3/smbd/server_reload.c b/source3/smbd/server_reload.c
index a4646462b0..601f83fb15 100644
--- a/source3/smbd/server_reload.c
+++ b/source3/smbd/server_reload.c
@@ -70,7 +70,8 @@ void reload_printers(void)
DSPRINT_UNPUBLISH);
TALLOC_FREE(pinfo2);
}
- nt_printer_remove(server_info, server_info, pname);
+ nt_printer_remove(server_info, server_info,
+ smbd_messaging_context(), pname);
lp_killservice(snum);
}
}