Home GnuPG
Diffusion GnuPG 699fe4b36f62

libdns: Fix connect and try next nameserver when ECONNREFUSED.

Description

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>