summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-30 10:57:39 +0100
committerVolker Lendecke <vl@samba.org>2012-11-30 14:02:53 +0100
commit1b170c29bc9239e2077e70c929e7426f5b19104d (patch)
tree9125e851880b5b87b186745a37e161eab77fdd22 /source4
parentaa7f4063177118b8dd37b30f40c5543fdd5f5ec0 (diff)
downloadsamba-1b170c29bc9239e2077e70c929e7426f5b19104d.tar.gz
samba-1b170c29bc9239e2077e70c929e7426f5b19104d.tar.bz2
samba-1b170c29bc9239e2077e70c929e7426f5b19104d.zip
torture: Fix copy and paste error.
Found by Coverity.
Diffstat (limited to 'source4')
-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);