From 40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Sep 2011 17:18:14 +0200 Subject: 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 --- source3/smbd/smb2_notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/smb2_notify.c') 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); } -- cgit