summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-09-21 11:30:06 -0700
committerJeremy Allison <jra@samba.org>2011-09-21 11:30:06 -0700
commite68ebe600d9349e16e83aeb8e6ae8647c117d098 (patch)
treed1ae5d4fb691f2c2f4274fb3418db34052e37cad /source3/smbd
parent60d91f2c561fb3467a2cc73377f9ba9204ddd496 (diff)
downloadsamba-e68ebe600d9349e16e83aeb8e6ae8647c117d098.tar.gz
samba-e68ebe600d9349e16e83aeb8e6ae8647c117d098.tar.bz2
samba-e68ebe600d9349e16e83aeb8e6ae8647c117d098.zip
Fix bug #8473 - smb2_find uses a hard coded max reply size of 0x10000 instead of smb2_max_trans.
Use lp_smb2_max_trans() instead of 0x10000.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c
index 6c68810853..509b9d6ecd 100644
--- a/source3/smbd/smb2_find.c
+++ b/source3/smbd/smb2_find.c
@@ -281,7 +281,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- if (in_output_buffer_length > 0x10000) {
+ if (in_output_buffer_length > lp_smb2_max_trans()) {
tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
return tevent_req_post(req, ev);
}