diff options
-rw-r--r-- | lib/hostip4.c | 5 | ||||
-rw-r--r-- | lib/hostip6.c | 5 | ||||
-rw-r--r-- | lib/hostthre.c | 4 |
3 files changed, 1 insertions, 13 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c index aa33fb965..05dd73e0a 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -160,11 +160,6 @@ Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, snprintf(sbuf, sizeof(sbuf), "%d", port); sbufptr = sbuf; } -#ifdef HAVE_GSSAPI - if(conn->data->set.krb) - /* if krb is used, we (might) need the canonical host name */ - hints.ai_flags |= AI_CANONNAME; -#endif (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); diff --git a/lib/hostip6.c b/lib/hostip6.c index fb3ad0c08..7d0a9122f 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -213,11 +213,6 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, /* the given address is numerical only, prevent a reverse lookup */ hints.ai_flags = AI_NUMERICHOST; } -#ifdef HAVE_GSSAPI - if(conn->data->set.krb) - /* if krb is used, we (might) need the canonical host name */ - hints.ai_flags |= AI_CANONNAME; -#endif if(port) { snprintf(sbuf, sizeof(sbuf), "%d", port); 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! */ |