summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-02 09:08:04 +0000
committerMichael Adam <obnox@samba.org>2013-09-06 13:42:24 +0200
commitf9a7ea2df2aaae8b22cfb209e26ceee3c8252ce0 (patch)
treec24a797af749489941c6a840fa80bcbbd81ecf04
parent392889c8bcffd0f9eb25ad0586172f2b9476b0b4 (diff)
downloadsamba-f9a7ea2df2aaae8b22cfb209e26ceee3c8252ce0.tar.gz
samba-f9a7ea2df2aaae8b22cfb209e26ceee3c8252ce0.tar.bz2
samba-f9a7ea2df2aaae8b22cfb209e26ceee3c8252ce0.zip
smbd: Slightly simplify do_break_to_none
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/oplock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 11e302ac3e..96c451cd11 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -753,8 +753,7 @@ static void do_break_to_none(struct tevent_context *ctx,
messaging_send_buf(state->sconn->msg_ctx,
share_entry->pid,
MSG_SMB_ASYNC_LEVEL2_BREAK,
- (uint8 *)msg,
- MSG_SMB_SHARE_MODE_ENTRY_SIZE);
+ (uint8 *)msg, sizeof(msg));
}
}