summaryrefslogtreecommitdiff
path: root/lib/krb5.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 15:02:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 15:02:08 +0200
commit5bd38b70ddcfb305fa6ee133827f35009eef4135 (patch)
tree93093b788a1499635e7e0474de47f03d23ba2113 /lib/krb5.c
parent44f1bef6683ddc3fb268b0bca2e5eae314d69d23 (diff)
downloadcurl-5bd38b70ddcfb305fa6ee133827f35009eef4135.tar.gz
KRB5: use given host name instead of reverse lookup'ed name
This code would previously use dns_entry->addr->ai_canonname instead of the given host name, which caused us grief and problems since not all our resolver options do the reverse lookup and I would also guess that it caused problems with KRB5/GSS with virtual name-based hosts. Now the host name from the URL is used.
Diffstat (limited to 'lib/krb5.c')
-rw-r--r--lib/krb5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index 36afc3c46..92f2b7155 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -163,7 +163,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
{
int ret;
char *p;
- const char *host = conn->dns_entry->addr->ai_canonname;
+ const char *host = conn->host->name;
ssize_t nread;
curl_socklen_t l = sizeof(conn->local_addr);
struct SessionHandle *data = conn->data;