aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CSecurityMSLogonII.cxx
diff options
context:
space:
mode:
authorKang Lin <kl222@126.com>2024-07-30 12:53:52 +0800
committerPierre Ossman <ossman@cendio.se>2024-08-30 12:24:17 +0200
commit1b0387a36cf5f22a34b955d9c3f7ff0860e7467c (patch)
treec9bd6d1faa6bec8bd9b1fb6e4315de7489ca61d9 /common/rfb/CSecurityMSLogonII.cxx
parent9df4f39c77aa66da992c7632d4ad5847e63d9f16 (diff)
downloadtigervnc-1b0387a36cf5f22a34b955d9c3f7ff0860e7467c.tar.gz
tigervnc-1b0387a36cf5f22a34b955d9c3f7ff0860e7467c.zip
Move getUserPasswd()/showMsgBox() to CConnection
Problems with the original code: A process can only establish one connection. After modification, multiple connections can be supported.
Diffstat (limited to 'common/rfb/CSecurityMSLogonII.cxx')
-rw-r--r--common/rfb/CSecurityMSLogonII.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CSecurityMSLogonII.cxx b/common/rfb/CSecurityMSLogonII.cxx
index dc817518..f8ff36c1 100644
--- a/common/rfb/CSecurityMSLogonII.cxx
+++ b/common/rfb/CSecurityMSLogonII.cxx
@@ -97,7 +97,7 @@ void CSecurityMSLogonII::writeCredentials()
std::string password;
rdr::RandomStream rs;
- (CSecurity::upg)->getUserPasswd(isSecure(), &username, &password);
+ cc->getUserPasswd(isSecure(), &username, &password);
std::vector<uint8_t> bBytes(8);
if (!rs.hasData(8))