mirror of
https://github.com/curl/curl.git
synced 2026-04-19 05:01:14 +03:00
ntlm: Fixed empty/bad base-64 decoded buffer return codes
This commit is contained in:
parent
7a91296f1d
commit
72147c62f7
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue