summaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-01 22:01:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-01 22:01:18 +0000
commit54967d2a3ab5559631407f7b7f67ef48c2dda6dd (patch)
treea48676ba7a58d61e49e27da20a6c99066f9fe424 /lib/hostip6.c
parent667fd9a60bd8bae34660b4bf8124060f1577ada3 (diff)
downloadcurl-54967d2a3ab5559631407f7b7f67ef48c2dda6dd.tar.gz
Thomas J. Moore provided a patch that introduces Kerberos5 support in
libcurl. This also makes the options change name to --krb (from --krb4) and CURLOPT_KRBLEVEL (from CURLOPT_KRB4LEVEL) but the old names are still
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r--lib/hostip6.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index 777b1e319..6d49b9c79 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.c
@@ -279,9 +279,10 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
/* the given address is numerical only, prevent a reverse lookup */
hints.ai_flags = AI_NUMERICHOST;
}
-#if 0 /* removed nov 8 2005 before 7.15.1 */
- else
- hints.ai_flags = AI_CANONNAME;
+#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) {