s3: Lift the smbd_messaging_context from nt_printer_publish
[amitay/samba.git] / source3 / smbd / server_reload.c
index 601f83fb15323c49dc6bf72d0ec2012711031d87..220147da602d037bf713f35e3dc70468fd8df0ec 100644 (file)
@@ -66,7 +66,9 @@ void reload_printers(void)
                                                 NULL, lp_servicename(snum),
                                                 NULL, &pinfo2)) {
                                nt_printer_publish(server_info,
-                                                  server_info, pinfo2,
+                                                  server_info,
+                                                  smbd_messaging_context(),
+                                                  pinfo2,
                                                   DSPRINT_UNPUBLISH);
                                TALLOC_FREE(pinfo2);
                        }