diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-02 09:06:13 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-09-06 13:41:59 +0200 |
commit | 392889c8bcffd0f9eb25ad0586172f2b9476b0b4 (patch) | |
tree | bb0229f25114dc17b88ea7bbd474c5d5e2a2f5a1 | |
parent | 4ecf8b4db69e5a7d09c3d269145d7b04914efff3 (diff) | |
download | samba-392889c8bcffd0f9eb25ad0586172f2b9476b0b4.tar.gz samba-392889c8bcffd0f9eb25ad0586172f2b9476b0b4.tar.bz2 samba-392889c8bcffd0f9eb25ad0586172f2b9476b0b4.zip |
smbd: Slightly simplify send_break_message
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/smbd/open.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 6ced3c2c39..e5ea71576b 100644 --- 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))); |