https://winscp.net/tracker/2367 (cherry picked from commit 6f1951374a42f5959eda21359f0f0f00e7a4c6ca) Source commit: 1707bce3c654ca21e66b3eb87ad0e9350b9c48b5
@@ -417,9 +417,9 @@ void TWebDAVFileSystem::ExchangeCapabilities(const char * Path, UnicodeString &
ClearNeonError();
int NeonStatus;
- FAuthenticationRetry = false;
do
{
+ FAuthenticationRetry = false;
NeonStatus = ne_options2(FSessionContext->NeonSession, Path, &FCapabilities);
}
while ((NeonStatus == NE_AUTH) && FAuthenticationRetry);