From: Steve Holme Date: Thu, 16 Oct 2014 19:25:15 +0000 (+0100) Subject: ntlm: Fixed empty/bad base-64 decoded buffer return codes X-Git-Tag: curl-7_39_0~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72147c62f7fa8893052ece2ebe83dd91035d24a2;p=thirdparty%2Fcurl.git ntlm: Fixed empty/bad base-64 decoded buffer return codes --- diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index 0c983b781f..4ce17f13b9 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]);