From 52fb63d51bb5db36899dcdc47a608cd3b9dc1001 Mon Sep 17 00:00:00 2001 From: steven_carr Date: Tue, 16 May 2006 20:04:18 +0000 Subject: Specifically test for Major Version 3 added --- libvncserver/auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libvncserver/auth.c') 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"); -- cgit v1.2.3