File: raise-max-daemons.patch

package info (click to toggle)
sendmail 8.18.1-8
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 12,496 kB
  • sloc: ansic: 105,736; perl: 7,504; sh: 5,488; makefile: 889
file content (16 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: hard-coded "10" is not enough to listen on both IPv4 and IPv6
 with a minimal configuration of MTA, MSA, and MSASSL on both localhost
 and primary interface (12 daemons). Raise limit to 64.
Author: Kees Cook <kees@debian.org>

--- a/sendmail/conf.h
+++ b/sendmail/conf.h
@@ -118,7 +118,7 @@ struct rusage;	/* forward declaration to
 # define MAXHDRSLEN	(32 * 1024)	/* max size of message headers */
 #endif
 #ifndef MAXDAEMONS
-# define MAXDAEMONS	10		/* max number of ports to listen to */
+# define MAXDAEMONS	64		/* max number of ports to listen to */
 	/* XREF: conf.c: MAXDAEMONS != 10 */
 #endif
 #ifndef MAXINTERFACES