summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-26 15:41:02 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-26 15:41:02 +0200
commit431b47686850c624225c015f35dd72606e092ce9 (patch)
treeef6dbef8f3b5ac57e09032d477a81c94f43dd480 /source3/libsmb
parent7682f61e1003c6e43ba46013eb45248d676c4476 (diff)
downloadsamba-431b47686850c624225c015f35dd72606e092ce9.tar.gz
samba-431b47686850c624225c015f35dd72606e092ce9.tar.bz2
samba-431b47686850c624225c015f35dd72606e092ce9.zip
s3:libsmb: use smb_len_nbt() in clitrans.c
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clitrans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index 91157b6698..dae7f2c844 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -140,9 +140,9 @@ static NTSTATUS cli_pull_trans(uint8_t *inbuf,
* length. Likewise for param_ofs/param_disp.
*/
- if (trans_oob(smb_len(inbuf), param_ofs, *pnum_param)
+ if (trans_oob(smb_len_nbt(inbuf), param_ofs, *pnum_param)
|| trans_oob(*ptotal_param, *pparam_disp, *pnum_param)
- || trans_oob(smb_len(inbuf), data_ofs, *pnum_data)
+ || trans_oob(smb_len_nbt(inbuf), data_ofs, *pnum_data)
|| trans_oob(*ptotal_data, *pdata_disp, *pnum_data)) {
return NT_STATUS_INVALID_NETWORK_RESPONSE;
}