From: Heiko Schlittermann (HS12-RIPE) Date: Thu, 24 Mar 2016 15:01:15 +0000 (+0100) Subject: Init the resolver even in -be mode. X-Git-Tag: exim-4_91_RC1~148^2~42^2~19 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/7a28511635d0d5f385a7c389bc5ec95dfed95581?ds=sidebyside Init the resolver even in -be mode. This gives us consistent behaviour if we use the resolver in -be and in -bh, and probably other modes. (Perl uses the resolver library linked into Exim and Perl's Socket6::getaddrinfo() returned different results in -be and -bh mode.) --- diff --git a/src/src/exim.c b/src/src/exim.c index e6acb0b80..ed3035247 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -4902,6 +4902,7 @@ Otherwise, if -bem was used, read a message from stdin. */ if (expansion_test) { + dns_init(0, 0); if (msg_action_arg > 0 && msg_action == MSG_LOAD) { uschar spoolname[256]; /* Not big_buffer; used in spool_read_header() */