From 1b170c29bc9239e2077e70c929e7426f5b19104d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 30 Nov 2012 10:57:39 +0100 Subject: [PATCH] torture: Fix copy and paste error. Found by Coverity. --- source4/torture/smb2/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c index ad300c028de..5897162c37c 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); -- 2.11.4.GIT