ソースを参照

When saving an edited site or default settings, WinSCP prompted for the master password, even when the site does not have any password to protect

Caused by 0ccd2def.

(cherry picked from commit 384fdf63bb94c7809fc5a170f11025ffcb5dbea0)

Source commit: 31322bd67691c220d0bda4ab5d6234a949374e74
Martin Prikryl 6 年 前
コミット
3b51d9b70e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      source/core/SessionData.cpp

+ 1 - 1
source/core/SessionData.cpp

@@ -1562,7 +1562,7 @@ bool __fastcall TSessionData::HasAnyPassword()
     HasAnySessionPassword() ||
     !FProxyPassword.IsEmpty() ||
     // will probably be never used
-    FNewPassword.IsEmpty();
+    !FNewPassword.IsEmpty();
 }
 //---------------------------------------------------------------------
 void __fastcall TSessionData::ClearSessionPasswords()