diff options
author | Andreas Schneider <asn@samba.org> | 2012-11-30 10:57:39 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-11-30 14:02:53 +0100 |
commit | 1b170c29bc9239e2077e70c929e7426f5b19104d (patch) | |
tree | 9125e851880b5b87b186745a37e161eab77fdd22 /source4 | |
parent | aa7f4063177118b8dd37b30f40c5543fdd5f5ec0 (diff) | |
download | samba-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.c | 2 |
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); |