s3-torture: locktest2: replace cli_lock() with cli_lock32()
[metze/samba/wip.git] / source3 / torture / locktest2.c
index aba6d2ff134a9d4c4786ca2a052e5483256eeb1b..5115d1364fef22a131c2fe113e07b1b2cd74bdb5 100644 (file)
@@ -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;