summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-24 17:51:17 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-25 01:47:21 +0200
commit648665a0087a46bce45be872730bf8bed4e1f1c2 (patch)
treefb75106742cf9030637f0c24a603cc155fcb7c24 /source3/libsmb
parentd670d060fc43a77ac7d320ed9024c049c59d9963 (diff)
downloadsamba-648665a0087a46bce45be872730bf8bed4e1f1c2.tar.gz
samba-648665a0087a46bce45be872730bf8bed4e1f1c2.tar.bz2
samba-648665a0087a46bce45be872730bf8bed4e1f1c2.zip
s3:libsmb: make use of smb_[set]len_nbt() in async_smb.c
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 76f7781d52..7213e9848f 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -499,7 +499,7 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
SSVAL(iov[0].iov_base, smb_mid, mid);
}
- smb_setlen((char *)iov[0].iov_base, iov_len(iov, iov_count) - 4);
+ smb_setlen_nbt((char *)iov[0].iov_base, iov_len(iov, iov_count) - 4);
status = cli_signv(state->cli, iov, iov_count, &state->seqnum);
@@ -523,7 +523,7 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
return status;
}
buf = (char *)talloc_memdup(state, enc_buf,
- smb_len(enc_buf)+4);
+ smb_len_nbt(enc_buf)+4);
SAFE_FREE(enc_buf);
if (buf == NULL) {
return NT_STATUS_NO_MEMORY;
@@ -732,7 +732,7 @@ static NTSTATUS cli_state_dispatch_smb1(struct cli_state *cli,
/*
* Paranoia checks that this is really an oplock break request.
*/
- oplock_break = (smb_len(inbuf) == 51); /* hdr + 8 words */
+ oplock_break = (smb_len_nbt(inbuf) == 51); /* hdr + 8 words */
oplock_break &= ((CVAL(inbuf, smb_flg) & FLAG_REPLY) == 0);
oplock_break &= (CVAL(inbuf, smb_com) == SMBlockingX);
oplock_break &= (SVAL(inbuf, smb_vwv6) == 0);