aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2004-03-31 16:45:39 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2004-03-31 16:45:39 +0000
commit1586b6b951a479df6dcc2091f738163b5aea80e6 (patch)
treefedd92be99641738b39d282294db766f9d7bb959 /etc.c
parent[w3m-dev 04050] SSL verify (diff)
downloadw3m-1586b6b951a479df6dcc2091f738163b5aea80e6.tar.gz
w3m-1586b6b951a479df6dcc2091f738163b5aea80e6.zip
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 (limited to 'etc.c')
-rw-r--r--etc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc.c b/etc.c
index 5fcdb07..b3e3c63 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.75 2003/10/05 18:52:51 ukai Exp $ */
+/* $Id: etc.c,v 1.76 2004/03/31 16:45:39 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -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);