ucb/source/ucp/webdav-curl/CurlSession.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ab65a74998b498ff49c15db87fc14a9afa89d8bf Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Wed Apr 13 20:18:31 2022 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Wed Apr 13 21:33:29 2022 +0200 ucb: webdav-curl: oops, increment after checking Change-Id: I8c51fa88253dbda595eb859d58408ad70ad661e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132982 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Jenkins 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