mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Assert that INTERNAL_OPEN_ONLY never gets real oplocks
Slightly simplify assumptions in the code Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Aug 6 23:06:41 UTC 2019 on sn-devel-184
This commit is contained in:
parent
5e05686e39
commit
aab1712478
@ -2999,7 +2999,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
|
||||
|
||||
if (req == NULL) {
|
||||
/* Ensure req == NULL means INTERNAL_OPEN_ONLY */
|
||||
SMB_ASSERT(((oplock_request & INTERNAL_OPEN_ONLY) != 0));
|
||||
SMB_ASSERT(oplock_request == INTERNAL_OPEN_ONLY);
|
||||
} else {
|
||||
/* And req != NULL means no INTERNAL_OPEN_ONLY */
|
||||
SMB_ASSERT(((oplock_request & INTERNAL_OPEN_ONLY) == 0));
|
||||
|
Loading…
Reference in New Issue
Block a user