[Bugfix] Return also "standard" security types (except VeNCrypt type) as
VeNCrypt subtypes. This is same behavior as original VeNCrypt implementation.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4121 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx
index b7ce714..4102920 100644
--- a/common/rfb/Security.cxx
+++ b/common/rfb/Security.cxx
@@ -84,7 +84,7 @@
   list<U32>::iterator i;
 
   for (i = enabledSecTypes.begin(); i != enabledSecTypes.end(); i++)
-    if (*i >= 0x100)
+    if (*i != secTypeVeNCrypt) /* Do not include VeNCrypt type to avoid loops */
       result.push_back(*i);
 
   return result;