From 9c410118cb8b53a6a7194b6768f433cac056e4d2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 6 Apr 2010 15:43:35 -0700 Subject: Parameterize "smb2 max read", "smb2 max write", "smb2 max trans". Set to 64k by default. Jeremy. --- source3/smbd/smb2_write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/smb2_write.c') diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c index 17d562affa..608cf09e45 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -81,9 +81,9 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req) } /* check the max write size */ - if (in_data_length > 0x00010000) { + if (in_data_length > lp_smb2_max_write()) { DEBUG(0,("here:%s: 0x%08X: 0x%08X\n", - __location__, in_data_length, 0x00010000)); + __location__, in_data_length, lp_smb2_max_write())); return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER); } -- cgit