diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-20 20:59:45 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:33 +0100 |
commit | 300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc (patch) | |
tree | 2c3ab0ed111f30b928b998b0eca9fefea71378b4 /source4/libcli/smb2/read.c | |
parent | a210d9fa05d46ef2ec0dcdbf13e1fd83c93b6219 (diff) | |
download | samba-300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc.tar.gz samba-300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc.tar.bz2 samba-300343d16c2d7f1f10bbd3c5e484131bf8fa5dfc.zip |
s4:libcli/smb2: implement on top of smbXcli_conn/req
metze
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; |