mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3:smbd: s/BUFFER_SIZE/LARGE_WRITEX_BUFFER_SIZE
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> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Mar 5 22:53:34 CET 2014 on sn-devel-104
This commit is contained in:
parent
c899d4fd9c
commit
032621d5bf
@ -32,11 +32,9 @@
|
||||
/* logged when starting the various Samba daemons */
|
||||
#define COPYRIGHT_STARTUP_MESSAGE "Copyright Andrew Tridgell and the Samba Team 1992-2014"
|
||||
|
||||
|
||||
#define BUFFER_SIZE (128*1024)
|
||||
|
||||
#define SAFETY_MARGIN 1024
|
||||
#define LARGE_WRITEX_HDR_SIZE 65
|
||||
#define LARGE_WRITEX_BUFFER_SIZE (128*1024)
|
||||
|
||||
#define NMB_PORT 137
|
||||
#define DGRAM_PORT 138
|
||||
|
@ -245,7 +245,7 @@ static bool valid_packet_size(size_t len)
|
||||
* of header. Don't print the error if this fits.... JRA.
|
||||
*/
|
||||
|
||||
if (len > (BUFFER_SIZE + LARGE_WRITEX_HDR_SIZE)) {
|
||||
if (len > (LARGE_WRITEX_BUFFER_SIZE + LARGE_WRITEX_HDR_SIZE)) {
|
||||
DEBUG(0,("Invalid packet length! (%lu bytes).\n",
|
||||
(unsigned long)len));
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user