From ab65a74998b498ff49c15db87fc14a9afa89d8bf Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 13 Apr 2022 20:18:31 +0200 Subject: [PATCH] ucb: webdav-curl: oops, increment after checking Change-Id: I8c51fa88253dbda595eb859d58408ad70ad661e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132982 Reviewed-by: Michael Stahl Tested-by: Jenkins --- ucb/source/ucp/webdav-curl/CurlSession.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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