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_write.c | |
parent | 77f739f03a32965b676d97a6f082bb3e023014ef (diff) | |
download | samba-40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb.tar.gz |
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_write.c')
-rw-r--r-- | source3/smbd/smb2_write.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c index b47f8a02a1..e95b967608 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -78,11 +78,10 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req) } /* check the max write size */ - if (in_data_length > lp_smb2_max_write()) { - /* This is a warning. */ + if (in_data_length > req->sconn->smb2.max_write) { DEBUG(2,("smbd_smb2_request_process_write : " "client ignored max write :%s: 0x%08X: 0x%08X\n", - __location__, in_data_length, lp_smb2_max_write())); + __location__, in_data_length, req->sconn->smb2.max_write)); #if 0 return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER); #endif |