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
This commit is contained in:
Michael Stahl
2022-04-13 20:18:31 +02:00
parent 0d55188fbf
commit ab65a74998

View File

@@ -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