1
0
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:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 200110a3b4
commit ba79d2a030

View File

@ -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 */