Skip to content

Commit

Permalink
Bug 1498: Remembered password is not used for reconnects
Browse files Browse the repository at this point in the history
https://winscp.net/tracker/1498

Source commit: 6e17df85822233a9d8bedfd7479d036baf8bf95d
  • Loading branch information
martinprikryl committed Jan 28, 2018
1 parent 7bfbfdf commit a5e1e1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/core/Terminal.cpp
Expand Up @@ -1199,11 +1199,7 @@ void __fastcall TTerminal::ResetConnection()
FTunnelError = L"";

FRememberedPasswordTried = false;
// Particularly to prevent reusing a wrong client certificate passphrase
// from a previous login attempt
FRememberedPassword = UnicodeString();
FRememberedTunnelPasswordTried = false;
FRememberedTunnelPassword = UnicodeString();

if (FDirectoryChangesCache != NULL)
{
Expand Down Expand Up @@ -1408,6 +1404,10 @@ void __fastcall TTerminal::Open()
{
FFingerprintScanned = FFileSystem->GetSessionInfo().CertificateFingerprint;
}
// Particularly to prevent reusing a wrong client certificate passphrase
// in the next login attempt
FRememberedPassword = UnicodeString();
FRememberedTunnelPassword = UnicodeString();
throw;
}
}
Expand Down

0 comments on commit a5e1e1b

Please sign in to comment.