summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/ioctl.c')
-rw-r--r--source4/torture/smb2/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c
index ad300c028d..5897162c37 100644
--- a/source4/torture/smb2/ioctl.c
+++ b/source4/torture/smb2/ioctl.c
@@ -182,7 +182,7 @@ static bool test_setup_copy_chunk(struct torture_context *torture,
torture_assert_ntstatus_ok(torture, status, "create write");
if (dest_size > 0) {
- for (i = 0; i <= src_size - 8; i += 8) {
+ for (i = 0; i <= dest_size - 8; i += 8) {
SBVAL(buf, i, patt_hash(i));
}
status = smb2_util_write(tree, *dest_h, buf, 0, dest_size);