[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 196/219: http_ntlm_wb: Cleanup handshake after clea
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 196/219: http_ntlm_wb: Cleanup handshake after clean NTLM failure |
Date: |
Wed, 22 May 2019 19:18:55 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 2697d633630477de3b0d9ead2dea599f3b79af75
Author: Steve Holme <address@hidden>
AuthorDate: Sat May 18 17:17:12 2019 +0100
http_ntlm_wb: Cleanup handshake after clean NTLM failure
Missed in 50b87c4e.
---
lib/curl_ntlm_wb.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/curl_ntlm_wb.c b/lib/curl_ntlm_wb.c
index 2aa2289b2..fa0ad95fb 100644
--- a/lib/curl_ntlm_wb.c
+++ b/lib/curl_ntlm_wb.c
@@ -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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnurl] 196/219: http_ntlm_wb: Cleanup handshake after clean NTLM failure,
gnunet <=