s4:torture/smb2: fix and improve the smb2.lock.replay test
authorMichael Adam <obnox@samba.org>
Thu, 20 Sep 2018 10:45:17 +0000 (12:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 Jan 2020 12:26:21 +0000 (13:26 +0100)
commit472ee3b1dfcfe3657ef1b2d7c7c4c22b3fd30b52
tree9009212af2bc60d4a1eb71678cd6d7140265d4b5
parent006a313dc0e82f289e5573573561f6e7f8402de2
s4:torture/smb2: fix and improve the smb2.lock.replay test

The test was wrong in that it used an invalid
lock sequence bucket (65) where it actually wanted
to use a valid on (64), and hence the test results
(which were adapted to the real responses) were not
quite logical.

This patch fixes this and also improves some of
the comments so that the flow of the patch becomes
a little more obvious.

Pair-Programmed-With: Günther Deschner <gd@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/lock.c