if (eof) {
*eof = READ3res->READ3res_u.resok.eof;
}
- memcpy(buf, &READ3res->READ3res_u.resok.data.data_val,
- READ3res->READ3res_u.resok.count);
-
+ if (buf) {
+ memcpy(buf, &READ3res->READ3res_u.resok.data.data_val,
+ READ3res->READ3res_u.resok.count);
+ }
finished:
return ret;
len = options.trunc_io;
}
- res = nfsio_read(op->child->private, op->fname, rw_buf, offset, len, NULL, NULL);
+ res = nfsio_read(op->child->private, op->fname, NULL, offset, len, NULL, NULL);
if (!check_status(res, op->status)) {
printf("[%d] READ \"%s\" failed (%x) - expected %s\n",
op->child->line, op->fname,