diff options
author | steven_carr <steven_carr> | 2006-05-16 20:04:18 +0000 |
---|---|---|
committer | steven_carr <steven_carr> | 2006-05-16 20:04:18 +0000 |
commit | 52fb63d51bb5db36899dcdc47a608cd3b9dc1001 (patch) | |
tree | fd6e6700e2e61585059d50398726249e796fd8e1 /libvncserver/auth.c | |
parent | b5ab72d65fe0a05646e0a0e5732619f11a57fc7e (diff) | |
download | libtdevnc-52fb63d51bb5db36899dcdc47a608cd3b9dc1001.tar.gz libtdevnc-52fb63d51bb5db36899dcdc47a608cd3b9dc1001.zip |
Specifically test for Major Version 3 added
Diffstat (limited to 'libvncserver/auth.c')
-rwxr-xr-x | libvncserver/auth.c | 3 |
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"); |