s3:smbd: s/BUFFER_SIZE/LARGE_WRITEX_BUFFER_SIZE
authorStefan Metzmacher <metze@samba.org>
Fri, 6 Dec 2013 12:56:12 +0000 (13:56 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Mar 2014 21:53:34 +0000 (22:53 +0100)
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

source3/include/smb.h
source3/smbd/process.c

index 1f6813e1145adc23c32fa293d25543a2e818c636..aab4ff5396b9414bd3bd919fadfdc594730ccdf3 100644 (file)
 /* 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
index 41ab9fb8e5e5d3f8d022face4a6043a88dcd9c17..9457000f4059a7afe2b405c05e24b9ffdcc50d53 100644 (file)
@@ -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;