summaryrefslogtreecommitdiffstats
path: root/libvncserver/auth.c
diff options
context:
space:
mode:
authorsteven_carr <steven_carr>2006-05-16 20:04:18 +0000
committersteven_carr <steven_carr>2006-05-16 20:04:18 +0000
commit52fb63d51bb5db36899dcdc47a608cd3b9dc1001 (patch)
treefd6e6700e2e61585059d50398726249e796fd8e1 /libvncserver/auth.c
parentb5ab72d65fe0a05646e0a0e5732619f11a57fc7e (diff)
downloadlibtdevnc-52fb63d51bb5db36899dcdc47a608cd3b9dc1001.tar.gz
libtdevnc-52fb63d51bb5db36899dcdc47a608cd3b9dc1001.zip
Specifically test for Major Version 3 added
Diffstat (limited to 'libvncserver/auth.c')
-rwxr-xr-xlibvncserver/auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvncserver/auth.c b/libvncserver/auth.c
index 6e7a617..0994c53 100755
--- a/libvncserver/auth.c
+++ b/libvncserver/auth.c
@@ -235,7 +235,8 @@ rfbAuthNewClient(rfbClientPtr cl)
securityType = rfbSecTypeVncAuth;
}
- if (cl->protocolMinorVersion < 7) {
+ if (cl->protocolMajorVersion==3 && cl->protocolMinorVersion < 7)
+ {
/* Make sure we use only RFB 3.3 compatible security types. */
if (securityType == rfbSecTypeInvalid) {
rfbLog("VNC authentication disabled - RFB 3.3 client rejected\n");