summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_notify.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-23 17:18:14 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-13 01:59:05 +0200
commit40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb (patch)
tree69e62fb96a417294f56afedb2bfad9d4b651d530 /source3/smbd/smb2_notify.c
parent77f739f03a32965b676d97a6f082bb3e023014ef (diff)
downloadsamba-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.c2
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);
}