aboutsummaryrefslogtreecommitdiff
path: root/lib/http_negotiate.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-04-01 21:48:35 +0100
committerSteve Holme <steve_holme@hotmail.com>2016-04-01 21:48:35 +0100
commit0aa8da10bbdafae136e2b1416b946191f7d275f6 (patch)
tree42663e32931a8a4a516639cb027a4a1e31a9ce09 /lib/http_negotiate.c
parent7bc64561a2e63ca93e4b0b31d350773ba80955c2 (diff)
http_negotiate: Corrected host and proxy host name being wrong way round
I had accidentally used the proxy server name for the host and the host server name for the proxy in commit ad5e9bfd5d and 6d6f9ca1d9. Whilst Windows SSPI was quite happy with this, GSS-API wasn't. Thanks-to: Michael Osipov
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r--lib/http_negotiate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index 99a4dbdad..9e1a83ccc 100644
--- a/lib/http_negotiate.c
+++ b/lib/http_negotiate.c
@@ -54,14 +54,14 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
userp = conn->proxyuser;
passwdp = conn->proxypasswd;
service = data->set.str[STRING_PROXY_SERVICE_NAME];
- host = conn->host.name;
+ host = conn->proxy.name;
neg_ctx = &data->state.proxyneg;
}
else {
userp = conn->user;
passwdp = conn->passwd;
service = data->set.str[STRING_SERVICE_NAME];
- host = conn->proxy.name;
+ host = conn->host.name;
neg_ctx = &data->state.negotiate;
}