summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver')
-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");