commit e21c5e39cfd9a1c80e0ef56bca5a64f144492e89
parent eefd77f151cf253e4f8cdd14c2cb675771de3c6e
Author: ukai <ukai>
Date: Wed, 31 Mar 2004 16:45:39 +0000
Debian Bug#241192 w3m ipv6 FQDN resolution failure
* etc.c (FQDN): need to set ai_flags AI_CANONNAME, since we need
ai_canonname here.
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2004-04-01 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ Debian Bug#241192 w3m ipv6 FQDN resolution failure
+ * etc.c (FQDN): need to set ai_flags AI_CANONNAME, since we need
+ ai_canonname here.
+
2004-03-31 AIDA Shinra <shinra@j10n.org>
* [w3m-dev 04050] SSL verify
diff --git a/etc.c b/etc.c
@@ -1970,6 +1970,7 @@ FQDN(char *host)
char *namebuf;
memset(&hints, 0, sizeof(hints));
+ hints.ai_flags = AI_CANONNAME;
hints.ai_family = *af;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(host, NULL, &hints, &res0);