mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
44f1bef668
commit
5bd38b70dd
@ -163,7 +163,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
char *p;
|
char *p;
|
||||||
const char *host = conn->dns_entry->addr->ai_canonname;
|
const char *host = conn->host->name;
|
||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
curl_socklen_t l = sizeof(conn->local_addr);
|
curl_socklen_t l = sizeof(conn->local_addr);
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user