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>
Fri, 15 Jun 2018 03:58:29 +0000 (12:58 +0900)
commitbcdbf8b8ebe9d61160e0b007dabe1b6462ffbc93
tree4914b336320478ea20a7a5f481c7d3b8fc4b92cf
parent1c0b6681e4f322b88ac35d1f21c03d3cfc35fc23
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.

--

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