From 67aa2c4a143698e8beae33316c6455fcdfae6c8c Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 14 Aug 2014 22:03:22 -0700 Subject: torture3: Allow padding byte for LARGE_READX responses Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- source3/torture/torture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index ba23a85336..987b23cbd5 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, -- cgit