1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

Test against W2K that we're doing large read/writes correctly (we are).

At least with 14 word writes.
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 00cabb2346
commit 24ef6258a1

View File

@ -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))