summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-06-06 14:06:35 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2023-06-06 16:42:33 +0200
commit829658fda824f465c596cdd7bcaf6397d8e66982 (patch)
treea83813a0b5aa95612d3c700bb6cf1a74508eeece
parent8a471c41ac57f9eee8ea97c4b9e5989b86eec67f (diff)
ucb: webdav-curl: auth data is invalid when receiving 401 cib-6.4-18
Even if it used to be valid before; unfortunately newly entered credentials weren't actually used because the flag was never reset. Change-Id: Ib36689f40ff780596b9cfe6fe589a6f2e79cfcd2
-rw-r--r--ucb/source/ucp/webdav-curl/CurlSession.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx
index 430c927df60d..407d91f19248 100644
--- a/ucb/source/ucp/webdav-curl/CurlSession.cxx
+++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx
@@ -1472,6 +1472,10 @@ auto CurlProcessor::ProcessRequest(
case SC_UNAUTHORIZED:
case SC_PROXY_AUTHENTICATION_REQUIRED:
{
+ (statusCode != SC_PROXY_AUTHENTICATION_REQUIRED
+ ? rSession.m_isAuthenticated
+ : rSession.m_isAuthenticatedProxy)
+ = false; // any auth data in m_pCurl is invalid
auto& rnAuthRequests(statusCode != SC_PROXY_AUTHENTICATION_REQUIRED
? nAuthRequests
: nAuthRequestsProxy);