* our client.
*/
-static NTSTATUS send_break_message(files_struct *fsp,
+static NTSTATUS send_break_message(struct messaging_context *msg_ctx,
struct share_mode_entry *exclusive,
uint64_t mid)
{
/* Create the message. */
share_mode_entry_to_message(msg, exclusive);
- status = messaging_send_buf(fsp->conn->sconn->msg_ctx, exclusive->pid,
+ status = messaging_send_buf(msg_ctx, exclusive->pid,
MSG_SMB_BREAK_REQUEST,
(uint8 *)msg, sizeof(msg));
if (!NT_STATUS_IS_OK(status)) {
if (share_mode_stale_pid(d, 0)) {
return false;
}
- send_break_message(fsp, entry, mid);
+ send_break_message(fsp->conn->sconn->msg_ctx, entry, mid);
return true;
}
if (have_sharing_violation) {
return false;
}
- send_break_message(fsp, entry, mid);
+ send_break_message(fsp->conn->sconn->msg_ctx, entry, mid);
return true;
}