]> granicus.if.org Git - curl/commitdiff
http_negotiate: Corrected host and proxy host name being wrong way round
authorSteve Holme <steve_holme@hotmail.com>
Fri, 1 Apr 2016 20:48:35 +0000 (21:48 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 1 Apr 2016 20:48:35 +0000 (21:48 +0100)
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
lib/http_negotiate.c

index 99a4dbdadcc34c99218db610c906d6f09e312d38..9e1a83cccd643705abb26c8eaa1e8d758965cafe 100644 (file)
@@ -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;
   }