diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-23 17:18:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-13 01:59:05 +0200 |
commit | 40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb (patch) | |
tree | 69e62fb96a417294f56afedb2bfad9d4b651d530 /source3/smbd/smb2_find.c | |
parent | 77f739f03a32965b676d97a6f082bb3e023014ef (diff) | |
download | samba-40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb.tar.gz samba-40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb.tar.xz samba-40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb.zip |
s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug #8473)
We should enforce the negotiated max sizes instead of the
lp_smb2_max_*() sizes.
metze
Diffstat (limited to 'source3/smbd/smb2_find.c')
-rw-r--r-- | source3/smbd/smb2_find.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c index 509b9d6ecd9..e64db24d02b 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 > lp_smb2_max_trans()) { + if (in_output_buffer_length > smb2req->sconn->smb2.max_trans) { tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); return tevent_req_post(req, ev); } |