diff options
author | Mårten Nordheim <[email protected]> | 2020-04-14 16:44:42 +0200 |
---|---|---|
committer | Mårten Nordheim <[email protected]> | 2020-04-21 09:33:26 +0200 |
commit | e03a3882bea83d19879b30e312cc1d24520ed540 (patch) | |
tree | a6d455d7e9aae78eba5c27592d05ed55457477e1 | |
parent | 41bc6f40fb03d7856d7cd190d81c6d06b1a67b3b (diff) |
QAuthenticator: Reset the authentication challenge
Both Negotiate and NTLM are conditioned on the 'challenge' being empty
when starting the authentication process. So let's reset it when we
start the authentication process.
Fixes: QTBUG-83370
Change-Id: I41af6d5bcfe3dd980ca2bedce10ceff4f61047ff
Reviewed-by: Andy Shaw <[email protected]>
Reviewed-by: Timur Pocheptsov <[email protected]>
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 33a30eb1cd6..4cc70b8d113 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -531,6 +531,7 @@ QByteArray QAuthenticatorPrivate::calculateResponse(const QByteArray &requestMet response = qNtlmPhase3(this, QByteArray::fromBase64(challenge)).toBase64(); phase = Done; } + challenge = ""; } break; @@ -560,6 +561,7 @@ QByteArray QAuthenticatorPrivate::calculateResponse(const QByteArray &requestMet if (!phase3Token.isEmpty()) { response = phase3Token.toBase64(); phase = Done; + challenge = ""; } } |