summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/torture/locktest2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/locktest2.c b/source3/torture/locktest2.c
index aba6d2ff13..5115d1364f 100644
--- a/source3/torture/locktest2.c
+++ b/source3/torture/locktest2.c
@@ -114,7 +114,8 @@ static bool try_lock(struct cli_state *c, int fstype,
switch (fstype) {
case FSTYPE_SMB:
- return cli_lock(c, fd, start, len, LOCK_TIMEOUT, op);
+ return NT_STATUS_IS_OK(cli_lock32(c, fd, start, len,
+ LOCK_TIMEOUT, op));
case FSTYPE_NFS:
lock.l_type = (op==READ_LOCK) ? F_RDLCK:F_WRLCK;