mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
http_ntlm_wb: Cleanup handshake after clean NTLM failure
Missed in 50b87c4e
.
This commit is contained in:
parent
bd21fc9d2f
commit
2697d63363
@ -356,7 +356,13 @@ CURLcode Curl_input_ntlm_wb(struct connectdata *conn,
|
||||
*state = NTLMSTATE_TYPE2; /* We got a type-2 message */
|
||||
}
|
||||
else {
|
||||
if(*state >= NTLMSTATE_TYPE1) {
|
||||
if(*state == NTLMSTATE_TYPE3) {
|
||||
infof(conn->data, "NTLM handshake rejected\n");
|
||||
Curl_http_auth_cleanup_ntlm_wb(conn);
|
||||
*state = NTLMSTATE_NONE;
|
||||
return CURLE_REMOTE_ACCESS_DENIED;
|
||||
}
|
||||
else if(*state >= NTLMSTATE_TYPE1) {
|
||||
infof(conn->data, "NTLM handshake failure (internal error)\n");
|
||||
return CURLE_REMOTE_ACCESS_DENIED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user