status = smb2_write(tree, &w);
if (!NT_STATUS_IS_OK(status)) {
printf("write failed - %s\n", nt_errstr(status));
- return status;
+ //return status;
}
torture_smb2_all_info(tree, handle);
status = smb2_write(tree, &w);
if (!NT_STATUS_IS_OK(status)) {
printf("write failed - %s\n", nt_errstr(status));
- return status;
+ //return status;
}
torture_smb2_all_info(tree, handle);
ZERO_STRUCT(r);
r.in.file.handle = handle;
- r.in.length = data.length;
+ r.in.length = data.length-1;
r.in.offset = 0;
status = smb2_read(tree, tree, &r);
if (!NT_STATUS_IS_OK(status)) {
printf("read failed - %s\n", nt_errstr(status));
- return status;
+ //return status;
}
- if (data.length != r.out.data.length ||
- memcmp(data.data, r.out.data.data, data.length) != 0) {
+ if (r.in.length != r.out.data.length ||
+ memcmp(data.data, r.out.data.data, r.out.data.length) != 0) {
printf("read data mismatch\n");
return NT_STATUS_NET_WRITE_FAULT;
}