diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-06 13:56:12 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-05 22:53:34 +0100 |
commit | 032621d5bf842e60dc9cd1cd0d3acc90482462a6 (patch) | |
tree | 101e08ddbf127e4b365037012c98b85cf45e5baa /source3 | |
parent | c899d4fd9c5a337ab82acdf11866df50fb0629e0 (diff) | |
download | samba-032621d5bf842e60dc9cd1cd0d3acc90482462a6.tar.gz samba-032621d5bf842e60dc9cd1cd0d3acc90482462a6.tar.xz samba-032621d5bf842e60dc9cd1cd0d3acc90482462a6.zip |
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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/smb.h | 4 | ||||
-rw-r--r-- | source3/smbd/process.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h index 1f6813e1145..aab4ff5396b 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -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 diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 41ab9fb8e5e..9457000f405 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -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; |