summaryrefslogtreecommitdiffstats
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-12-06 13:50:49 +0100
committerJeremy Allison <jra@samba.org>2014-03-05 10:06:24 -0800
commit5cd5c1613996ecebdcd632e932957947f4c27308 (patch)
treeccb213d6bb3ebfcedd6791a20b309e45d6837ff5 /source3/smbd/process.c
parenta349b0bef9085fd139640ec92399bc63d8029cb9 (diff)
downloadsamba-5cd5c1613996ecebdcd632e932957947f4c27308.tar.gz
samba-5cd5c1613996ecebdcd632e932957947f4c27308.tar.xz
samba-5cd5c1613996ecebdcd632e932957947f4c27308.zip
s3:smbd: use sconn->smb1.sessions.max_send = SMB_BUFFER_SIZE_MAX
SMB_BUFFER_SIZE_MAX is UINT16_MAX and the largest value a client can possibly specify in the session setup request. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10422 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 938ee4ca49..41ab9fb8e5 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -3700,7 +3700,7 @@ void smbd_process(struct tevent_context *ev_ctx,
sconn->smb1.negprot.max_recv = tmp;
sconn->smb1.sessions.done_sesssetup = false;
- sconn->smb1.sessions.max_send = BUFFER_SIZE;
+ sconn->smb1.sessions.max_send = SMB_BUFFER_SIZE_MAX;
if (!init_dptrs(sconn)) {
exit_server("init_dptrs() failed");