Specifically test for Major Version 3 added

pull/1/head
steven_carr 19 years ago
parent b5ab72d65f
commit 52fb63d51b

@ -235,7 +235,8 @@ rfbAuthNewClient(rfbClientPtr cl)
securityType = rfbSecTypeVncAuth; securityType = rfbSecTypeVncAuth;
} }
if (cl->protocolMinorVersion < 7) { if (cl->protocolMajorVersion==3 && cl->protocolMinorVersion < 7)
{
/* Make sure we use only RFB 3.3 compatible security types. */ /* Make sure we use only RFB 3.3 compatible security types. */
if (securityType == rfbSecTypeInvalid) { if (securityType == rfbSecTypeInvalid) {
rfbLog("VNC authentication disabled - RFB 3.3 client rejected\n"); rfbLog("VNC authentication disabled - RFB 3.3 client rejected\n");

Loading…
Cancel
Save