diff options
author | Werner Koch <[email protected]> | 2015-10-25 15:38:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-10-25 15:47:12 +0000 |
commit | 5e7ac031f513ad3b60e4f092fa72b3bec0676515 (patch) | |
tree | 6a791e2b779b16e385864bbca2eb511054fa6c29 /dirmngr/Makefile.am | |
parent | dirmngr: Better handle systems without IPv6 or IPv4. (diff) | |
download | gnupg-5e7ac031f513ad3b60e4f092fa72b3bec0676515.tar.gz gnupg-5e7ac031f513ad3b60e4f092fa72b3bec0676515.zip |
dirmngr: Add workaround for broken getaddrinfo.
* dirmngr/dns-stuff.c (resolve_name_standard): On failure retry by
first resolving the CNAME.
(get_dns_cname): New.
* dirmngr/t-dns-stuff.c (main): Add option --cname.
--
At least the getaddrinfo implementation in glibc 2.19-13 from Debian
returns EAI_NONAME if the CNAME points to a too long list of A/AAAA
addresses. Looking at the wire the data is correctly returned from
the server but getaddrinfo seems to get confused by truncation and
retry. To fix this we resolve the CNAME again and call getaddrinfo
again with the canonical name.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/Makefile.am')
-rw-r--r-- | dirmngr/Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/Makefile.am b/dirmngr/Makefile.am index 0d4400fad..009802ad6 100644 --- a/dirmngr/Makefile.am +++ b/dirmngr/Makefile.am @@ -140,9 +140,9 @@ t_ldap_parse_uri_SOURCES = \ http.c dns-stuff.c \ $(ldap_url) $(t_common_src) t_ldap_parse_uri_CFLAGS = -DWITHOUT_NPTH=1 -t_ldap_parse_uri_LDADD = $(ldaplibs) $(t_common_ldadd) +t_ldap_parse_uri_LDADD = $(ldaplibs) $(t_common_ldadd) $(DNSLIBS) t_dns_stuff_SOURCES = t-dns-stuff.c dns-stuff.c -t_dns_stuff_LDADD = $(t_common_ldadd) +t_dns_stuff_LDADD = $(t_common_ldadd) $(DNSLIBS) $(PROGRAMS) : $(libcommon) $(libcommonpth) |