From 006b011cdf1a9469efb83bb38022b7ee8df784d7 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Mon, 22 Aug 2011 16:42:59 +0200 Subject: http NTLM: remaining bits from 0001-Moved-ntlm-[...]-curl_ntlm-mod_3.patch * Added function comments: - Curl_ntlm_decode_type2_message - Curl_ntlm_create_type1_message - Curl_ntlm_create_type3_message * Modification of ntlm processing state to NTLMSTATE_TYPE2 is now done only when Curl_ntlm_decode_type2_message() has fully succeeded. --- lib/http_ntlm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/http_ntlm.c') diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index ca81a947d..2c60e5275 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -105,11 +105,11 @@ CURLcode Curl_input_ntlm(struct connectdata *conn, header++; if(*header) { - /* We got a type-2 message */ - result = Curl_ntlm_decode_type2_message(conn->data, header, ntlm); if(CURLE_OK != result) return result; + + ntlm->state = NTLMSTATE_TYPE2; /* We got a type-2 message */ } else { if(ntlm->state >= NTLMSTATE_TYPE1) { @@ -117,7 +117,7 @@ CURLcode Curl_input_ntlm(struct connectdata *conn, return CURLE_REMOTE_ACCESS_DENIED; } - ntlm->state = NTLMSTATE_TYPE1; /* we should sent away a type-1 */ + ntlm->state = NTLMSTATE_TYPE1; /* We should send away a type-1 */ } } -- cgit v1.2.3