summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb2cli_tcon.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-13 10:25:52 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:06 +0200
commit44b53937d59842a63e2cbfa92219f4f519530b0a (patch)
tree1df9a6f68350b724c5fa86d8eab01151466fac85 /source3/libsmb/smb2cli_tcon.c
parent4a3352020db962ef40728d8a754da8a9418ca8a7 (diff)
downloadsamba-44b53937d59842a63e2cbfa92219f4f519530b0a.tar.gz
samba-44b53937d59842a63e2cbfa92219f4f519530b0a.tar.bz2
samba-44b53937d59842a63e2cbfa92219f4f519530b0a.zip
libcli/smb: pass max_dyn_len to smb2cli_req_send()
This way we can calculate the correct credit charge for requests with large output buffers. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb/smb2cli_tcon.c')
-rw-r--r--source3/libsmb/smb2cli_tcon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c
index ab97f8d0e1..b3136fac91 100644
--- a/source3/libsmb/smb2cli_tcon.c
+++ b/source3/libsmb/smb2cli_tcon.c
@@ -85,7 +85,8 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx,
NULL, /* tcon */
cli->smb2.session,
state->fixed, sizeof(state->fixed),
- dyn, dyn_len);
+ dyn, dyn_len,
+ 0); /* max_dyn_len */
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
@@ -211,7 +212,8 @@ struct tevent_req *smb2cli_tdis_send(TALLOC_CTX *mem_ctx,
cli->smb2.tcon,
cli->smb2.session,
state->fixed, sizeof(state->fixed),
- NULL, 0);
+ NULL, 0, /* dyn* */
+ 0); /* max_dyn_len */
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}