]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Return also "standard" security types (except VeNCrypt type) as
authorAdam Tkac <atkac@redhat.com>
Thu, 12 Aug 2010 13:54:59 +0000 (13:54 +0000)
committerAdam Tkac <atkac@redhat.com>
Thu, 12 Aug 2010 13:54:59 +0000 (13:54 +0000)
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

common/rfb/Security.cxx

index b7ce7149fa07bb79973cf0ca44d5745dd7ca9731..4102920427a8b08334c377ea2e185c8839c6668c 100644 (file)
@@ -84,7 +84,7 @@ const std::list<rdr::U32> Security::GetEnabledExtSecTypes(void)
   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;