mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
cli_read() was reading too many bytes.
This commit is contained in:
parent
200110a3b4
commit
ba79d2a030
@ -71,10 +71,9 @@ ssize_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_
|
||||
*/
|
||||
|
||||
readsize = (cli->max_xmit - (smb_size+32)) & ~1023;
|
||||
if (readsize > size )
|
||||
readsize = size;
|
||||
|
||||
while (total < size) {
|
||||
readsize = MIN(readsize, size-total);
|
||||
|
||||
/* Issue a read and receive a reply */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user