1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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.
This commit is contained in:
Jeremy Allison 2011-09-21 11:30:06 -07:00
parent 60d91f2c56
commit e68ebe600d

View File

@ -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);
}