mirror of
https://github.com/curl/curl.git
synced 2026-04-15 12:21:45 +03:00
Cleanup handshake after clean NTLM failure
This commit is contained in:
parent
ce8311c7e4
commit
50b87c4e68
1 changed files with 7 additions and 1 deletions
|
|
@ -95,7 +95,13 @@ CURLcode Curl_input_ntlm(struct connectdata *conn,
|
|||
ntlm->state = NTLMSTATE_TYPE2; /* We got a type-2 message */
|
||||
}
|
||||
else {
|
||||
if(ntlm->state >= NTLMSTATE_TYPE1) {
|
||||
if(ntlm->state == NTLMSTATE_TYPE3) {
|
||||
infof(conn->data, "NTLM handshake rejected\n");
|
||||
Curl_http_ntlm_cleanup(conn);
|
||||
ntlm->state = NTLMSTATE_NONE;
|
||||
return CURLE_REMOTE_ACCESS_DENIED;
|
||||
}
|
||||
else if(ntlm->state >= NTLMSTATE_TYPE1) {
|
||||
infof(conn->data, "NTLM handshake failure (internal error)\n");
|
||||
return CURLE_REMOTE_ACCESS_DENIED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue