From 3ea7e2803969e2d18bcfcec1ad048f8028444533 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 15 Nov 2018 17:21:45 +0000 Subject: [PATCH] OpenBSD: bump dns-result buffer to 64kB This just to take out a difference in testsuite behaviour. Builds for memory-constrained devices could legitimately use 16kB. --- src/OS/os.h-OpenBSD | 5 +++-- src/src/globals.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/OS/os.h-OpenBSD b/src/OS/os.h-OpenBSD index b09bd84be..dde779f00 100644 --- a/src/OS/os.h-OpenBSD +++ b/src/OS/os.h-OpenBSD @@ -53,7 +53,8 @@ typedef struct __res_state *res_state; #endif #define TIME_T_FMT "%lld" -/* seems arpa/nameser.h does not define this */ -#define NS_MAXMSG 16380 +/* seems arpa/nameser.h does not define this. +Space-constrained devices could use much smaller; a few k. */ +#define NS_MAXMSG 65535 /* End */ diff --git a/src/src/globals.c b/src/src/globals.c index 731d25c0a..b3362a34c 100644 --- a/src/src/globals.c +++ b/src/src/globals.c @@ -1220,7 +1220,7 @@ pid_t queue_run_pid = (pid_t)0; int queue_run_pipe = -1; uschar *queue_smtp_domains = NULL; -unsigned int random_seed = 0; +uint32_t random_seed = 0; tree_node *ratelimiters_cmd = NULL; tree_node *ratelimiters_conn = NULL; tree_node *ratelimiters_mail = NULL; -- 2.25.1