smbd: Slightly simplify do_break_to_none
authorVolker Lendecke <vl@samba.org>
Mon, 2 Sep 2013 09:08:04 +0000 (09:08 +0000)
committerMichael Adam <obnox@samba.org>
Fri, 6 Sep 2013 11:42:24 +0000 (13:42 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/oplock.c

index 11e302ac3ed9d4723744c1d1f2c3fee9af3ab82f..96c451cd11ec6ffa2978cafbaf24f83caed6e7af 100644 (file)
@@ -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));
                }
        }