summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-26 15:41:34 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-26 15:41:34 +0200
commitf8f7f4e3abb3190e6608379c6d2fc3b4eb8532c1 (patch)
treede9395f785092706f36effc60c93455671b97292 /source3
parent431b47686850c624225c015f35dd72606e092ce9 (diff)
downloadsamba-f8f7f4e3abb3190e6608379c6d2fc3b4eb8532c1.tar.gz
samba-f8f7f4e3abb3190e6608379c6d2fc3b4eb8532c1.tar.bz2
samba-f8f7f4e3abb3190e6608379c6d2fc3b4eb8532c1.zip
s3:libsmb: make use of smb_buffer_oob() in clitrans.c
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clitrans.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index dae7f2c844..f487a34864 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -140,10 +140,10 @@ static NTSTATUS cli_pull_trans(uint8_t *inbuf,
* length. Likewise for param_ofs/param_disp.
*/
- if (trans_oob(smb_len_nbt(inbuf), param_ofs, *pnum_param)
- || trans_oob(*ptotal_param, *pparam_disp, *pnum_param)
- || trans_oob(smb_len_nbt(inbuf), data_ofs, *pnum_data)
- || trans_oob(*ptotal_data, *pdata_disp, *pnum_data)) {
+ if (smb_buffer_oob(smb_len_nbt(inbuf), param_ofs, *pnum_param)
+ || smb_buffer_oob(*ptotal_param, *pparam_disp, *pnum_param)
+ || smb_buffer_oob(smb_len_nbt(inbuf), data_ofs, *pnum_data)
+ || smb_buffer_oob(*ptotal_data, *pdata_disp, *pnum_data)) {
return NT_STATUS_INVALID_NETWORK_RESPONSE;
}