s3:smbd: take less than SMB_BUFFER_SIZE_MIN ('500') as header overhead in ipc.c
commit9da034e1d453ea9136d13a4036862317ec2526c1
authorStefan Metzmacher <metze@samba.org>
Fri, 6 Dec 2013 12:53:45 +0000 (6 13:53 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 1 Apr 2014 07:08:05 +0000 (1 09:08 +0200)
tree69f949cb3c5672308a7cd678496af5373cdf20ca
parent1039e5fd2b02a9062e1b38f868a5cf1ce6b00116
s3:smbd: take less than SMB_BUFFER_SIZE_MIN ('500') as header overhead in ipc.c

We're now sure that sconn->smb1.sessions.max_send is >= SMB_BUFFER_SIZE_MIN.
in order to garantee some progress we need to make sure our assumed
header overhead is less than SMB_BUFFER_SIZE_MIN.

Assuming 372 bytes for the SMBtrans headers should still be more than
enough.

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>
(cherry picked from commit 2ec49cf57c88735be962b0681b487df5efe7ed6b)
source3/smbd/ipc.c