mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r15028: Fix logic error checking valid args to POSIX lock
call.
Jeremy.
(This used to be commit 44b0d856ae
)
This commit is contained in:
parent
423352b90e
commit
41a35cfe94
@ -1148,7 +1148,7 @@ BOOL cli_posix_lock(struct cli_state *cli, int fnum,
|
||||
SMB_BIG_UINT offset, SMB_BIG_UINT len,
|
||||
BOOL wait_lock, enum brl_type lock_type)
|
||||
{
|
||||
if (lock_type != READ_LOCK || lock_type != WRITE_LOCK) {
|
||||
if (lock_type != READ_LOCK && lock_type != WRITE_LOCK) {
|
||||
return False;
|
||||
}
|
||||
return cli_posix_lock_internal(cli, fnum, offset, len, wait_lock, lock_type);
|
||||
|
Loading…
Reference in New Issue
Block a user