summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-30 12:50:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-30 12:50:49 +0300
commit2c1b14cf49f7c2926954685930a51d3d06d0850a (patch)
tree8d096f5271de82d831099f7b2641e9771cc6e728
parent3fdb557d643a405fcef11ce5f12cfdea5d2bc284 (diff)
Jabber: fix for broken NTLM auth
-rw-r--r--src/mir_app/src/netlibsecurity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/netlibsecurity.cpp b/src/mir_app/src/netlibsecurity.cpp
index 3cafe2bb68..0e0bf66ea5 100644
--- a/src/mir_app/src/netlibsecurity.cpp
+++ b/src/mir_app/src/netlibsecurity.cpp
@@ -326,7 +326,7 @@ char* NtlmCreateResponseFromChallenge(HANDLE hSecurity, const char *szChallenge,
Netlib_Logf(nullptr, "InitializeSecurityContext(%S): 0x%x", hNtlm->szProvider, sc);
complete = (sc != SEC_I_COMPLETE_AND_CONTINUE && sc != SEC_I_CONTINUE_NEEDED);
- if (!complete) {
+ if (sc == SEC_I_COMPLETE_NEEDED || sc == SEC_I_COMPLETE_AND_CONTINUE) {
sc = CompleteAuthToken(&hNtlm->hClientContext, &outputBufferDescriptor);
Netlib_Logf(nullptr, "CompleteAuthToken: 0x%x", sc);
}