summaryrefslogtreecommitdiffstats
path: root/common/rfb/Password.cxx
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-05-18 10:45:09 +0000
committerAdam Tkac <atkac@redhat.com>2009-05-18 10:45:09 +0000
commit77db1e4e74d87ce0c1c4fb0b8ab3d3b9d2e1d6b5 (patch)
treef868fc4da19a64ba59660284d5a89779ffff9d39 /common/rfb/Password.cxx
parent6f0ce588d170a530514ff4906e0f40cc71b6985d (diff)
downloadtigervnc-77db1e4e74d87ce0c1c4fb0b8ab3d3b9d2e1d6b5.tar.gz
tigervnc-77db1e4e74d87ce0c1c4fb0b8ab3d3b9d2e1d6b5.zip
[Bugfix] Add correct PlainPasswd constructor to avoid vncpasswd crash.
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=499401 git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3812 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/Password.cxx')
-rw-r--r--common/rfb/Password.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/rfb/Password.cxx b/common/rfb/Password.cxx
index 9127862d..240c9d4f 100644
--- a/common/rfb/Password.cxx
+++ b/common/rfb/Password.cxx
@@ -38,6 +38,9 @@ PlainPasswd::PlainPasswd() {}
PlainPasswd::PlainPasswd(char* pwd) : CharArray(pwd) {
}
+PlainPasswd::PlainPasswd(int len) : CharArray(len) {
+}
+
PlainPasswd::PlainPasswd(const ObfuscatedPasswd& obfPwd) : CharArray(9) {
if (obfPwd.length < 8)
throw rdr::Exception("bad obfuscated password length");