s3-smbd: enable SMB2 lock sequence checking when SMB3 is enabled.
authorGünther Deschner <gd@samba.org>
Mon, 25 Jan 2016 17:56:47 +0000 (18:56 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 16 Oct 2018 09:41:54 +0000 (11:41 +0200)
commita537a4b3139b17927b832daf3412392df6e30afb
treeb4e2b558adf87804646b8aa702ded684243e30f1
parentd5fc73942fb51ea6e69771d4ae0520c75c0af4b6
s3-smbd: enable SMB2 lock sequence checking when SMB3 is enabled.

While windows enables it only for resilient and persistent handles a SMB server
SHOULD (according to MS-SMB2 section 3.3.5.14 ) activate processing of lock
sequence numbers for EITHER
- protocol dialect 2.1 and resilient handles OR
- protocol dialect 3.x.

Guenther

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