git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ecf8b4
)
smbd: Slightly simplify send_break_message
author
Volker Lendecke
<vl@samba.org>
Mon, 2 Sep 2013 09:06:13 +0000
(09:06 +0000)
committer
Michael Adam
<obnox@samba.org>
Fri, 6 Sep 2013 11:41:59 +0000
(13:41 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 6ced3c2c39a5c1e96889a5c8babccd14e7a7fbdb..e5ea71576b4502be5d8be8d928f7786448666620 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-1186,8
+1186,7
@@
static NTSTATUS send_break_message(files_struct *fsp,
status = messaging_send_buf(fsp->conn->sconn->msg_ctx, exclusive->pid,
MSG_SMB_BREAK_REQUEST,
- (uint8 *)msg,
- MSG_SMB_SHARE_MODE_ENTRY_SIZE);
+ (uint8 *)msg, sizeof(msg));
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("Could not send oplock break message: %s\n",
nt_errstr(status)));