Init the resolver even in -be mode.
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 24 Mar 2016 15:01:15 +0000 (16:01 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 24 Mar 2016 15:12:19 +0000 (16:12 +0100)
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.)

src/src/exim.c

index e6acb0b80b3b221b9d01a91e925fff625983c4cb..ed3035247c28d442b95f6bfa03a01c34053acac1 100644 (file)
@@ -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() */