diff options
author | Christof Schmitt <cs@samba.org> | 2014-08-14 22:03:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-08-30 00:27:13 +0200 |
commit | 67aa2c4a143698e8beae33316c6455fcdfae6c8c (patch) | |
tree | beff4cf1f3a337b209f2d6fe4beb697ef505d43a /source3 | |
parent | b43a5810f839df823af2eb74fa2290c64e5dfaf6 (diff) | |
download | samba-67aa2c4a143698e8beae33316c6455fcdfae6c8c.tar.gz samba-67aa2c4a143698e8beae33316c6455fcdfae6c8c.tar.xz samba-67aa2c4a143698e8beae33316c6455fcdfae6c8c.zip |
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')
-rw-r--r-- | source3/torture/torture.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |