s3:smbXsrv_open: initialize smbXsrv_open_global->lock_sequence_array with 0xFF
authorStefan Metzmacher <metze@samba.org>
Wed, 24 Oct 2012 13:17:56 +0000 (15:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 13 Aug 2018 15:34:53 +0000 (17:34 +0200)
commit3fa9e0aa41ed8db8dbfff919c7f54df8cd986055
tree96dffb3360b2031f4c551f2ecb2c68b63df46737
parent62021ab10d75c163e1cd0400df27f81629135cf4
s3:smbXsrv_open: initialize smbXsrv_open_global->lock_sequence_array with 0xFF

This does not match the current documentation, but is very likely the
right thing to do.

If we would match the documentation and initialize with 0x00,
we would return STATUS_SUCCESS without doing any locks.
If the client also follows the documentation and starts
with a lock_sequence of 0 for the first operation.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
source3/smbd/smbXsrv_open.c