diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-09-04 12:40:15 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-09-04 12:40:15 +0000 |
commit | 9990eec9b9aabacedff6e3c24b757533807222dc (patch) | |
tree | c72be69bdbb9de58001644a8564655d7b0856365 /java | |
parent | b2ccdf1b4e2cbd03c1f1ffffeb686559d84ab1c0 (diff) | |
download | tigervnc-9990eec9b9aabacedff6e3c24b757533807222dc.tar.gz tigervnc-9990eec9b9aabacedff6e3c24b757533807222dc.zip |
fixed protocol version < 3.7 secType bug
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4667 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/tigervnc/rfb/CConnection.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/tigervnc/rfb/CConnection.java b/java/src/com/tigervnc/rfb/CConnection.java index da4ac6fd..15e19896 100644 --- a/java/src/com/tigervnc/rfb/CConnection.java +++ b/java/src/com/tigervnc/rfb/CConnection.java @@ -100,6 +100,7 @@ abstract public class CConnection extends CMsgHandler { vlog.info("processing security types message"); int secType = Security.secTypeInvalid; + List<Integer> secTypes = new ArrayList<Integer>(); secTypes = security.GetEnabledSecTypes(); //for (Iterator i = secTypes.iterator(); i.hasNext(); ) @@ -121,10 +122,10 @@ abstract public class CConnection extends CMsgHandler { secType = refType; break; } + if (!i.hasNext()) + secType = Security.secTypeInvalid; } - if (!i.hasNext()) - secType = Security.secTypeInvalid; } else { vlog.error("Unknown 3.3 security type "+secType); throw new Exception("Unknown 3.3 security type"); |