summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2014-08-14 22:03:22 -0700
committerJeremy Allison <jra@samba.org>2014-08-30 00:27:13 +0200
commit67aa2c4a143698e8beae33316c6455fcdfae6c8c (patch)
treebeff4cf1f3a337b209f2d6fe4beb697ef505d43a /source3/torture
parentb43a5810f839df823af2eb74fa2290c64e5dfaf6 (diff)
downloadsamba-67aa2c4a143698e8beae33316c6455fcdfae6c8c.tar.gz
torture3: Allow padding byte for LARGE_READX responses
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index ba23a853367..987b23cbd54 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -7258,7 +7258,8 @@ static size_t calc_expected_return(struct cli_state *cli, size_t len_requested)
len_requested &= 0xFFFF;
}
- return MIN(len_requested, max_pdu - (MIN_SMB_SIZE + VWV(12)));
+ return MIN(len_requested,
+ max_pdu - (MIN_SMB_SIZE + VWV(12) + 1 /* padding byte */));
}
static bool check_read_call(struct cli_state *cli,