summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-26 15:35:05 -0700
committerStefan Metzmacher <metze@samba.org>2013-10-23 11:55:33 +0200
commitde95b9d11d7044a0d592f75f24ad0e67e595e97c (patch)
tree00970a280f3493d9fe63a5f9f1d8d25febae05f8 /source3
parentcb279212744345a5a77e60401cb19d151b978ea8 (diff)
downloadsamba-de95b9d11d7044a0d592f75f24ad0e67e595e97c.tar.gz
samba-de95b9d11d7044a0d592f75f24ad0e67e595e97c.tar.bz2
samba-de95b9d11d7044a0d592f75f24ad0e67e595e97c.zip
smbd: Simplify send_break_message
We don't need an fsp here Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 35a4877161..b7586aa177 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1167,7 +1167,7 @@ static NTSTATUS open_mode_check(connection_struct *conn,
* 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)
{
@@ -1181,7 +1181,7 @@ static NTSTATUS send_break_message(files_struct *fsp,
/* 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)) {
@@ -1349,7 +1349,7 @@ static bool delay_for_oplock(files_struct *fsp,
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) {
@@ -1369,7 +1369,7 @@ static bool delay_for_oplock(files_struct *fsp,
return false;
}
- send_break_message(fsp, entry, mid);
+ send_break_message(fsp->conn->sconn->msg_ctx, entry, mid);
return true;
}