mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:libsmb: consistently use state->size in cli_write_andx_create() (bug #5326)
Otherwise we may get unexpected results.
This is a fix that was missing in commit 95595dd93f
(s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326))
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 9 10:13:32 CET 2011 on sn-devel-104
This commit is contained in:
parent
0c2f91c6b2
commit
4b31c4273c
@ -880,7 +880,7 @@ struct tevent_req *cli_write_andx_create(TALLOC_CTX *mem_ctx,
|
||||
state->iov[0].iov_base = (void *)&state->pad;
|
||||
state->iov[0].iov_len = 1;
|
||||
state->iov[1].iov_base = discard_const_p(void, buf);
|
||||
state->iov[1].iov_len = size;
|
||||
state->iov[1].iov_len = state->size;
|
||||
|
||||
subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, wct, vwv,
|
||||
2, state->iov);
|
||||
|
Loading…
Reference in New Issue
Block a user