s3: smbd: Move implicit call to lp_posix_cifsu_locktype() out of init_strict_lock_str...
[samba.git] / source3 / smbd / smb2_ioctl_filesys.c
index 3324afbffc859dfe60ac62f235531b5f3af583e0..fe24fca518d55fad2ab3a68b5b98a0288e0c2ee9 100644 (file)
@@ -463,6 +463,7 @@ static NTSTATUS fsctl_zero_data(TALLOC_CTX *mem_ctx,
                                zdata_info.file_off,
                                len,
                                WRITE_LOCK,
+                               lp_posix_cifsu_locktype(fsp),
                                &lck);
 
        if (!SMB_VFS_STRICT_LOCK_CHECK(fsp->conn, fsp, &lck)) {