aboutsummaryrefslogtreecommitdiff
path: root/lib/hostthre.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 15:03:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 15:03:52 +0200
commitf3d4b17a9cf4b92778a945c00a9df9b4856b97f6 (patch)
treea3b031bdea0d114d7dbf333bf685a9b632b0e7af /lib/hostthre.c
parent5bd38b70ddcfb305fa6ee133827f35009eef4135 (diff)
resolvers: no more using AI_CANONNAME
No resolver anymore needs to use AI_CANONNAME and do reverse lookups. We should work hard to avoid having code that relies on it.
Diffstat (limited to 'lib/hostthre.c')
-rw-r--r--lib/hostthre.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 1e4845e2c..6698cd848 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -561,9 +561,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
memset(&hints, 0, sizeof(hints));
hints.ai_family = pf;
hints.ai_socktype = conn->socktype;
-#if 0 /* removed nov 8 2005 before 7.15.1 */
- hints.ai_flags = AI_CANONNAME;
-#endif
+
snprintf(sbuf, sizeof(sbuf), "%d", port);
/* fire up a new resolver thread! */