diff options
author | Jeremy Allison <jra@samba.org> | 2010-04-06 15:43:35 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-04-06 15:43:35 -0700 |
commit | 9c410118cb8b53a6a7194b6768f433cac056e4d2 (patch) | |
tree | da4bbc2c88538adf1ed265684ca140dfa1021d94 /source3/smbd/smb2_read.c | |
parent | 027adf88eaf8c3a7375da7c0f9c0397db46668e6 (diff) | |
download | samba-9c410118cb8b53a6a7194b6768f433cac056e4d2.tar.gz samba-9c410118cb8b53a6a7194b6768f433cac056e4d2.tar.bz2 samba-9c410118cb8b53a6a7194b6768f433cac056e4d2.zip |
Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".
Set to 64k by default.
Jeremy.
Diffstat (limited to 'source3/smbd/smb2_read.c')
-rw-r--r-- | source3/smbd/smb2_read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index 674fa2b71f..aa2805d66a 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -75,9 +75,9 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req) in_remaining_bytes = IVAL(inbody, 0x28); /* check the max read size */ - if (in_length > 0x00010000) { + if (in_length > lp_smb2_max_read()) { DEBUG(0,("here:%s: 0x%08X: 0x%08X\n", - __location__, in_length, 0x00010000)); + __location__, in_length, lp_smb2_max_read())); return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER); } |