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>
Tue, 15 Oct 2019 07:36:22 +0000 (09:36 +0200)
commitbd935bebd48b2873ca3cc994f8de388bf6fc045c
tree3caef5761520b43a39fc3cc31a5b3a63aa6ef537
parentb6e61836b9140d04a745662577e72ccf71e5b30d
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.

Pair-Programmed-With: Michael Adam <obnox@samba.org>

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