s3: Lift the smbd_messaging_context from nt_printer_publish
[amitay/samba.git] / source3 / rpc_server / srv_spoolss_nt.c
index f3f1efcee846401f22c1c77fb59afad6f1ac7dbf..b8a8526eec24b317495dd25ad7d2cd8dd5ac798b 100644 (file)
@@ -6122,7 +6122,8 @@ static WERROR publish_or_unpublish_printer(struct pipes_struct *p,
                return WERR_BADFID;
        }
 
-       nt_printer_publish(pinfo2, p->server_info, pinfo2, info7->action);
+       nt_printer_publish(pinfo2, p->server_info, p->msg_ctx, pinfo2,
+                          info7->action);
 
        TALLOC_FREE(pinfo2);
        return WERR_OK;