Fix copy-paste error for the secTypeX509Vnc security type
diff --git a/common/rfb/SecurityClient.cxx b/common/rfb/SecurityClient.cxx
index fe34712..9bd780f 100644
--- a/common/rfb/SecurityClient.cxx
+++ b/common/rfb/SecurityClient.cxx
@@ -84,7 +84,7 @@
return new CSecurityStack(secTypeX509None, "X509 with no password",
new CSecurityTLS(false));
case secTypeX509Vnc:
- return new CSecurityStack(secTypeX509None, "X509 with VNCAuth",
+ return new CSecurityStack(secTypeX509Vnc, "X509 with VNCAuth",
new CSecurityTLS(false), new CSecurityVncAuth());
case secTypeX509Plain:
return new CSecurityStack(secTypeX509Plain, "X509 with Username/Password",