summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-25 15:47:10 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-25 19:30:43 +0200
commit414df4b9c4595e90aa65425817f49b47718528fb (patch)
tree973020f4ceb3f17fd12f468f8a624ecb24a6d85b /source3/libsmb
parentfc69057b8b8136db5532a84197413d2a69a3242f (diff)
downloadsamba-414df4b9c4595e90aa65425817f49b47718528fb.tar.gz
samba-414df4b9c4595e90aa65425817f49b47718528fb.tar.bz2
samba-414df4b9c4595e90aa65425817f49b47718528fb.zip
s3:smb2cli_base: make use of [_]smb_[set]len_tcp()
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 25 19:30:43 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smb2cli_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c
index f5d3de0ac7..de4a06bd2d 100644
--- a/source3/libsmb/smb2cli_base.c
+++ b/source3/libsmb/smb2cli_base.c
@@ -324,7 +324,7 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs,
*/
state = tevent_req_data(reqs[0], struct smb2cli_req_state);
- _smb_setlen_large(state->nbt, nbt_len);
+ _smb_setlen_tcp(state->nbt, nbt_len);
iov[0].iov_base = state->nbt;
iov[0].iov_len = sizeof(state->nbt);
@@ -411,7 +411,7 @@ static NTSTATUS smb2cli_inbuf_parse_compound(uint8_t *buf, TALLOC_CTX *mem_ctx,
iov[0].iov_base = buf;
iov[0].iov_len = 4;
- buflen = smb_len_large(buf) + 4;
+ buflen = smb_len_tcp(buf) + 4;
taken = 4;
while (taken < buflen) {