summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-04-13 20:18:31 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-04-13 21:33:29 +0200
commitab65a74998b498ff49c15db87fc14a9afa89d8bf (patch)
tree792b76511892df89729c43aa80ec871ea930a80b /ucb
parent0d55188fbf7b0399f01bae521f1a34d22ad8ba18 (diff)
ucb: webdav-curl: oops, increment after checking
Change-Id: I8c51fa88253dbda595eb859d58408ad70ad661e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132982 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Jenkins
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-curl/CurlSession.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx
index ed0fb60fb2b9..79574118d210 100644
--- a/ucb/source/ucp/webdav-curl/CurlSession.cxx
+++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx
@@ -1374,7 +1374,6 @@ auto CurlProcessor::ProcessRequest(
}
else if (pEnv && pEnv->m_xAuthListener)
{
- ++rnAuthRequests;
::std::optional<OUString> const oRealm(ExtractRealm(
headers, statusCode == SC_UNAUTHORIZED ? "WWW-Authenticate"
: "Proxy-Authenticate"));
@@ -1398,6 +1397,7 @@ auto CurlProcessor::ProcessRequest(
// will always force its use no matter how hopeless
bool const isSystemCredSupported((authAvail & authSystem) != 0
&& rnAuthRequests == 0);
+ ++rnAuthRequests;
// Ask user via XInteractionHandler.
// Warning: This likely runs an event loop which may