git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ff088
)
s3:libsmb: consistently use state->size in cli_write_andx_create() (bug #5326)
author
Stefan Metzmacher
<metze@samba.org>
Fri, 11 Nov 2011 01:10:00 +0000
(
02:10
+0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 5 Mar 2012 19:53:41 +0000
(20:53 +0100)
Otherwise we may get unexpected results.
This is a fix that was missing in commit
95595dd93fd04999fcf56ecaab7c29b064d021f8
(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
(cherry picked from commit
4b31c4273c45faa639445614061f3da548eb8505
)
(cherry picked from commit
2bdf8728612dd7ca5b04e38375beabe9db4a91bf
)
source3/libsmb/clireadwrite.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clireadwrite.c
b/source3/libsmb/clireadwrite.c
index 0481c181b8d04e7a38e2482a777380c90073c639..53ecacc10936e3ea4a561377046a8ecaa9de87e3 100644
(file)
--- a/
source3/libsmb/clireadwrite.c
+++ b/
source3/libsmb/clireadwrite.c
@@
-974,7
+974,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 = CONST_DISCARD(void *, buf);
- state->iov[1].iov_len = size;
+ state->iov[1].iov_len = s
tate->s
ize;
subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, wct, vwv,
2, state->iov);