summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-26 15:48:42 -0700
committerStefan Metzmacher <metze@samba.org>2013-10-23 11:56:21 +0200
commit4c8bdf7878e7b1b85be356680c5c9a12be6d7244 (patch)
treeeb2b1fd481bd483cb91845ceedf3a3cd57970088 /source3
parentde95b9d11d7044a0d592f75f24ad0e67e595e97c (diff)
downloadsamba-4c8bdf7878e7b1b85be356680c5c9a12be6d7244.tar.gz
samba-4c8bdf7878e7b1b85be356680c5c9a12be6d7244.tar.bz2
samba-4c8bdf7878e7b1b85be356680c5c9a12be6d7244.zip
smbd: Don't send op_mid in a BREAK message
The callee doesn't use this anyway 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, 3 insertions, 5 deletions
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;
}