smbd: Slightly simplify send_break_message
authorVolker Lendecke <vl@samba.org>
Mon, 2 Sep 2013 09:06:13 +0000 (09:06 +0000)
committerMichael 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

index 6ced3c2c39a5c1e96889a5c8babccd14e7a7fbdb..e5ea71576b4502be5d8be8d928f7786448666620 100644 (file)
@@ -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)));