s3: Lift the smbd_messaging_context from is_printer_published
[amitay/samba.git] / source3 / smbd / server_reload.c
index 220147da602d037bf713f35e3dc70468fd8df0ec..4a499daf25d3dbeab7a4d9c8bcb7b8f3b14cd6b7 100644 (file)
@@ -63,6 +63,7 @@ void reload_printers(void)
                        DEBUG(3, ("removing stale printer %s\n", pname));
 
                        if (is_printer_published(server_info, server_info,
+                                                smbd_messaging_context(),
                                                 NULL, lp_servicename(snum),
                                                 NULL, &pinfo2)) {
                                nt_printer_publish(server_info,