diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2018-08-20 22:59:17 -0400 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2018-08-20 23:01:07 -0400 |
commit | d95be6c752d3658b7b5f41eb6971f49db59b3088 (patch) | |
tree | d4203ffa73ef9441ef269ea714e10498ee6a4c4f /java | |
parent | 7e0364570cd95678847816dcb6f98dc4b7cc5959 (diff) | |
download | tigervnc-d95be6c752d3658b7b5f41eb6971f49db59b3088.tar.gz tigervnc-d95be6c752d3658b7b5f41eb6971f49db59b3088.zip |
[Java] Fix error in VeNCrypt protocol implemtation
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/rfb/CSecurityVeNCrypt.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/com/tigervnc/rfb/CSecurityVeNCrypt.java b/java/com/tigervnc/rfb/CSecurityVeNCrypt.java index 8bffedfd..09be32fc 100644 --- a/java/com/tigervnc/rfb/CSecurityVeNCrypt.java +++ b/java/com/tigervnc/rfb/CSecurityVeNCrypt.java @@ -51,16 +51,16 @@ public class CSecurityVeNCrypt extends CSecurity { OutStream os = cc.getOutStream(); /* get major, minor versions, send what we can support (or 0.0 for can't support it) */ - if (!haveRecvdMinorVersion) { - minorVersion = is.readU8(); - haveRecvdMinorVersion = true; + if (!haveRecvdMajorVersion) { + majorVersion = is.readU8(); + haveRecvdMajorVersion = true; return false; } - if (!haveRecvdMajorVersion) { - majorVersion = is.readU8(); - haveRecvdMajorVersion = true; + if (!haveRecvdMinorVersion) { + minorVersion = is.readU8(); + haveRecvdMinorVersion = true; } /* major version in upper 8 bits and minor version in lower 8 bits */ |