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_notify.c | |
parent | 77f739f03a32965b676d97a6f082bb3e023014ef (diff) | |
download | samba-40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb.tar.gz samba-40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb.tar.bz2 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_notify.c')
-rw-r--r-- | source3/smbd/smb2_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_notify.c b/source3/smbd/smb2_notify.c index a8b1eb433a..49c6a54497 100644 --- a/source3/smbd/smb2_notify.c +++ b/source3/smbd/smb2_notify.c @@ -73,7 +73,7 @@ NTSTATUS smbd_smb2_request_process_notify(struct smbd_smb2_request *req) * 0x00010000 is what Windows 7 uses, * Windows 2008 uses 0x00080000 */ - if (in_output_buffer_length > lp_smb2_max_trans()) { + if (in_output_buffer_length > req->sconn->smb2.max_trans) { return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER); } |