libdns: Fix connect and try next nameserver when ECONNREFUSED.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 15 Jun 2018 03:58:29 +0000 (12:58 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 18 Jun 2018 08:26:20 +0000 (17:26 +0900)
commit699fe4b36f62b0f4d4e21a85ee7c9ae13377d6cb
tree0ab5a28fceef5861e9c57fe605a80379fc69b605
parent0c05b08e8b5c1f120fe5f3ed5c061f034f7496a0
libdns: Fix connect and try next nameserver when ECONNREFUSED.

* dirmngr/dns.c (dns_so_check): When EINVAL, release the association
by connect with AF_UNSPEC and try again.  Also try again for
ECONNREFUSED.
(dns_res_exec): Try next nameserver when ECONNREFUSED.

--

Cherry pick from master commit:
    bcdbf8b8ebe9d61160e0b007dabe1b6462ffbc93

GnuPG-bug-id: T3374
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/dns.c