From 4c8bdf7878e7b1b85be356680c5c9a12be6d7244 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 26 Sep 2013 15:48:42 -0700 Subject: smbd: Don't send op_mid in a BREAK message The callee doesn't use this anyway Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/smbd/open.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index b7586aa177..f9e6496214 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1168,15 +1168,13 @@ static NTSTATUS open_mode_check(connection_struct *conn, */ static NTSTATUS send_break_message(struct messaging_context *msg_ctx, - struct share_mode_entry *exclusive, - uint64_t mid) + const struct share_mode_entry *exclusive) { NTSTATUS status; char msg[MSG_SMB_SHARE_MODE_ENTRY_SIZE]; DEBUG(10, ("Sending break request to PID %s\n", procid_str_static(&exclusive->pid))); - exclusive->op_mid = mid; /* Create the message. */ share_mode_entry_to_message(msg, exclusive); @@ -1349,7 +1347,7 @@ static bool delay_for_oplock(files_struct *fsp, if (share_mode_stale_pid(d, 0)) { return false; } - send_break_message(fsp->conn->sconn->msg_ctx, entry, mid); + send_break_message(fsp->conn->sconn->msg_ctx, entry); return true; } if (have_sharing_violation) { @@ -1369,7 +1367,7 @@ static bool delay_for_oplock(files_struct *fsp, return false; } - send_break_message(fsp->conn->sconn->msg_ctx, entry, mid); + send_break_message(fsp->conn->sconn->msg_ctx, entry); return true; } -- cgit