s3:smbd: take less than SMB_BUFFER_SIZE_MIN ('500') as header overhead in ipc.c
authorStefan Metzmacher <metze@samba.org>
Fri, 6 Dec 2013 12:53:45 +0000 (13:53 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Mar 2014 18:06:24 +0000 (10:06 -0800)
commit2ec49cf57c88735be962b0681b487df5efe7ed6b
tree0a0f501d76cd5ca746742e9d5044030fe7d59db3
parentcce1eaea91088efd742891befdaafade0c1fdce6
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>
source3/smbd/ipc.c