aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-01-01 22:36:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-01-01 22:36:32 +0100
commit7f472618deb557fafa5c757682c1530790a3cace (patch)
tree260ce11f436a200f355b06d96fa90db0d71939ec
parent08107111acd79f653d5b732f898699243167c316 (diff)
Curl_input_negotiate: use the correct buffer for input
Unfortunately we have no test cases for this and I have no SSPI build or server to verify this with. The change seems simple enough though. Bug: http://curl.haxx.se/bug/view.cgi?id=3466497 Reported by: Patrice Guerin
-rw-r--r--lib/http_negotiate_sspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 08d016274..a63de7dc5 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -197,7 +197,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
if(input_token) {
in_buff_desc.ulVersion = 0;
in_buff_desc.cBuffers = 1;
- in_buff_desc.pBuffers = &out_sec_buff;
+ in_buff_desc.pBuffers = &in_sec_buff;
in_sec_buff.cbBuffer = input_token_len;
in_sec_buff.BufferType = SECBUFFER_TOKEN;