aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-10-16 20:25:15 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-10-16 20:24:56 +0100
commit72147c62f7fa8893052ece2ebe83dd91035d24a2 (patch)
tree01b0669a35b1e905da88b642cb53f0074bc69929 /lib
parent7a91296f1de22eef430734f000fa00978a35930b (diff)
ntlm: Fixed empty/bad base-64 decoded buffer return codes
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_ntlm_msgs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index 0c983b781..4ce17f13b 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -293,7 +293,7 @@ CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data,
if(!buffer) {
infof(data, "NTLM handshake failure (unhandled condition)\n");
- return CURLE_REMOTE_ACCESS_DENIED;
+ return CURLE_BAD_CONTENT_ENCODING;
}
#ifdef USE_WINDOWS_SSPI
@@ -308,7 +308,7 @@ CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data,
/* This was not a good enough type-2 message */
free(buffer);
infof(data, "NTLM handshake failure (bad type-2 message)\n");
- return CURLE_REMOTE_ACCESS_DENIED;
+ return CURLE_BAD_CONTENT_ENCODING;
}
ntlm->flags = readint_le(&buffer[20]);