Skip to content

Commit

Permalink
ntlm: Fixed empty/bad base-64 decoded buffer return codes
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed Oct 16, 2014
1 parent 7a91296 commit 72147c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/curl_ntlm_msgs.c
Expand Up @@ -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
Expand All @@ -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]);
Expand Down

0 comments on commit 72147c6

Please sign in to comment.