mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Test against W2K that we're doing large read/writes correctly (we are).
At least with 14 word writes.
Jeremy.
(This used to be commit 24ef6258a1
)
This commit is contained in:
parent
418d5684a2
commit
5e09ffdc7c
@ -223,6 +223,14 @@ static BOOL cli_issue_write(struct cli_state *cli, int fnum, off_t offset, uint1
|
||||
{
|
||||
char *p;
|
||||
|
||||
if (size > cli->bufsize) {
|
||||
cli->outbuf = realloc(cli->outbuf, size + 1024);
|
||||
cli->inbuf = realloc(cli->inbuf, size + 1024);
|
||||
if (cli->outbuf == NULL || cli->inbuf == NULL)
|
||||
return False;
|
||||
cli->bufsize = size + 1024;
|
||||
}
|
||||
|
||||
memset(cli->outbuf,'\0',smb_size);
|
||||
memset(cli->inbuf,'\0',smb_size);
|
||||
|
||||
@ -300,6 +308,7 @@ ssize_t cli_write(struct cli_state *cli,
|
||||
break;
|
||||
|
||||
bwritten += SVAL(cli->inbuf, smb_vwv2);
|
||||
bwritten += (((int)(SVAL(cli->inbuf, smb_vwv4)))>>16);
|
||||
}
|
||||
|
||||
while (received < issued && cli_receive_smb(cli))
|
||||
|
Loading…
Reference in New Issue
Block a user