Skip to content

Commit

Permalink
ntlm: Fixed return code for bad type-2 Target Info
Browse files Browse the repository at this point in the history
Use CURLE_BAD_CONTENT_ENCODING for bad type-2 Target Info security
buffers just like we do for bad decodes.
  • Loading branch information
captain-caveman2k committed Dec 14, 2014
1 parent 18f58c4 commit 52a4d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curl_ntlm_msgs.c
Expand Up @@ -201,7 +201,7 @@ static CURLcode ntlm_decode_type2_target(struct SessionHandle *data,
(target_info_offset < 48)) {
infof(data, "NTLM handshake failure (bad type-2 message). "
"Target Info Offset Len is set incorrect by the peer\n");
return CURLE_REMOTE_ACCESS_DENIED;
return CURLE_BAD_CONTENT_ENCODING;
}

ntlm->target_info = malloc(target_info_len);
Expand Down

0 comments on commit 52a4d6b

Please sign in to comment.