aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-04-30 12:13:49 +0200
committerDan Fandrich <dan@coneharvesters.com>2015-04-30 12:13:49 +0200
commit32606e4f0b1f16b2644b41df1f73da2c32dc142a (patch)
tree8a443adee0a46d25bc454f428a65de11825b468f /lib
parent693422b79b48550b1f030caea749f409dae4a007 (diff)
http_negotiate_sspi: added missing data variable
Diffstat (limited to 'lib')
-rw-r--r--lib/http_negotiate_sspi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 2c1075954..a50ea96f1 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -43,6 +43,7 @@
CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
const char *header)
{
+ struct SessionHandle *data = conn->data;
BYTE *input_token = NULL;
SecBufferDesc out_buff_desc;
SecBuffer out_sec_buff;
@@ -64,12 +65,12 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
if(proxy) {
userp = conn->proxyuser;
passwdp = conn->proxypasswd;
- neg_ctx = &conn->data->state.proxyneg;
+ neg_ctx = &data->state.proxyneg;
}
else {
userp = conn->user;
passwdp = conn->passwd;
- neg_ctx = &conn->data->state.negotiate;
+ neg_ctx = &data->state.negotiate;
}
/* Not set means empty */
@@ -83,7 +84,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
/* We finished successfully our part of authentication, but server
* rejected it (since we're again here). Exit with an error since we
* can't invent anything better */
- Curl_cleanup_negotiate(conn->data);
+ Curl_cleanup_negotiate(data);
return CURLE_LOGIN_DENIED;
}
@@ -168,7 +169,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
return result;
if(!input_token_len) {
- infof(conn->data,
+ infof(data,
"Negotiate handshake failure (empty challenge message)\n");
return CURLE_BAD_CONTENT_ENCODING;