diff options
Diffstat (limited to 'source4/libcli/smb2/read.c')
-rw-r--r-- | source4/libcli/smb2/read.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/smb2/read.c b/source4/libcli/smb2/read.c index 9d40e32a4d..ca487a74a1 100644 --- a/source4/libcli/smb2/read.c +++ b/source4/libcli/smb2/read.c @@ -44,6 +44,8 @@ struct smb2_request *smb2_read_send(struct smb2_tree *tree, struct smb2_read *io SSVAL(req->out.body, 0x2C, io->in.channel_offset); SSVAL(req->out.body, 0x2E, io->in.channel_length); + req->credit_charge = (MAX(io->in.length, 1) - 1)/ 65536 + 1; + smb2_transport_send(req); return req; |