Browse Source

Issue 2367 – WebDAV authentication is endlessly retried when both SSPI/NTLM/Negotiate and other authentication method fails

https://winscp.net/tracker/2367

Source commit: 554cb433189890a584db96e12eadee4915fab26e
Martin Prikryl 6 months ago
parent
commit
6f1951374a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/WebDAVFileSystem.cpp

+ 1 - 1
source/core/WebDAVFileSystem.cpp

@@ -417,9 +417,9 @@ void TWebDAVFileSystem::ExchangeCapabilities(const char * Path, UnicodeString &
   ClearNeonError();
   ClearNeonError();
 
 
   int NeonStatus;
   int NeonStatus;
-  FAuthenticationRetry = false;
   do
   do
   {
   {
+    FAuthenticationRetry = false;
     NeonStatus = ne_options2(FSessionContext->NeonSession, Path, &FCapabilities);
     NeonStatus = ne_options2(FSessionContext->NeonSession, Path, &FCapabilities);
   }
   }
   while ((NeonStatus == NE_AUTH) && FAuthenticationRetry);
   while ((NeonStatus == NE_AUTH) && FAuthenticationRetry);