s3:smb2_lock: error out early in smbd_smb2_lock_send()
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Aug 2019 14:39:41 +0000 (16:39 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 9 Sep 2019 16:04:29 +0000 (16:04 +0000)
commitc4ab0c8502284ee0a4e4336f42c352b5a19dda43
tree521c339685bf6bf1df1c34de55c30da090229875
parent5e156be97a37b9bd42b18a78cf6ab541271971e7
s3:smb2_lock: error out early in smbd_smb2_lock_send()

We no longer expect NT_STATUS_FILE_LOCK_CONFLICT from
the VFS layer and assert that in a future version.

This makes it easier to port the same logic to smbd_smb2_lock_try().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 39d514cdc358f175d0968f4a78f8f2f05a6c1707)
source3/smbd/smb2_lock.c