aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-07-29 16:27:15 +0200
committerYang Tse <yangsita@gmail.com>2011-07-29 16:27:15 +0200
commitad8193fbb903331faa16adb42374a397669640fc (patch)
tree3ac9a6291dd4d3cb4061ece0bff109427433f88b /lib
parentbcbac913d65275cc9e22534a8b4cda6994b75977 (diff)
NTLM single-sign on adjustments (VII)
Initialize variables when connectdata object is created.
Diffstat (limited to 'lib')
-rw-r--r--lib/http_ntlm.c5
-rw-r--r--lib/url.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index dc90604d7..ba0a4d717 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -946,11 +946,6 @@ CURLcode Curl_output_ntlm_sso(struct connectdata *conn,
* If NTLM single-sign-on fails, go back to original request
* handling process.
*/
- /* Clean data before using them */
- conn->ntlm_auth_hlpr_socket = CURL_SOCKET_BAD;
- conn->ntlm_auth_hlpr_pid = 0;
- conn->challenge_header = NULL;
- conn->response_header = NULL;
/* Create communication with ntlm_auth */
res = sso_ntlm_initiate(conn, userp);
if(res)
diff --git a/lib/url.c b/lib/url.c
index aa1e6f8cb..bffa23423 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3515,6 +3515,13 @@ static struct connectdata *allocate_conn(struct SessionHandle *data)
conn->ip_version = data->set.ipver;
+#ifdef USE_NTLM_SSO
+ conn->ntlm_auth_hlpr_socket = CURL_SOCKET_BAD;
+ conn->ntlm_auth_hlpr_pid = 0;
+ conn->challenge_header = NULL;
+ conn->response_header = NULL;
+#endif
+
if(data->multi && Curl_multi_canPipeline(data->multi) &&
!conn->master_buffer) {
/* Allocate master_buffer to be used for pipelining */