summaryrefslogtreecommitdiffstats
path: root/libvncclient/rfbproto.c
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-09-14 12:14:13 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-09-27 14:20:48 +0200
commit4e1aba74e6b485c39c4522f1f65c114b88b61636 (patch)
tree03dc53fc5f9ee24f8ae888a300c4169ac26e6a5c /libvncclient/rfbproto.c
parentfd084b5d28189727f1dff6022d2b421d772bcc1a (diff)
downloadlibvncserver-4e1aba74e6b485c39c4522f1f65c114b88b61636.zip
libvncserver-4e1aba74e6b485c39c4522f1f65c114b88b61636.tar.gz
Fix bug for VNC Server version 4
Signed-off-by: Vic Lee <llyzs@163.com>
Diffstat (limited to 'libvncclient/rfbproto.c')
-rw-r--r--libvncclient/rfbproto.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index 5a83e47..c73593f 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -511,8 +511,11 @@ InitialiseRFBConnection(rfbClient* client)
}
/* we do not support > RFB3.8 */
- if (major==3 && minor>8)
+ if ((major==3 && minor>8) || major>3)
+ {
+ client->major=3;
client->minor=8;
+ }
rfbClientLog("VNC server supports protocol version %d.%d (viewer %d.%d)\n",
major, minor, rfbProtocolMajorVersion, rfbProtocolMinorVersion);
OpenPOWER on IntegriCloud