[Bugfix] Print empty string by default when paths for X.509 certs don't exist.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4256 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx
index 3877fe4..d0b689a 100644
--- a/common/rfb/CSecurityTLS.cxx
+++ b/common/rfb/CSecurityTLS.cxx
@@ -101,8 +101,10 @@
   sprintf(crlDefault.buf, "%s509_crl.pem", homeDir);
   delete [] homeDir;
 
-  x509ca.setDefaultStr(strdup(caDefault.buf));
-  x509crl.setDefaultStr(strdup(crlDefault.buf));
+ if (!fileexists(caDefault.buf))
+   x509ca.setDefaultStr(strdup(caDefault.buf));
+ if (!fileexists(crlDefault.buf))
+   x509crl.setDefaultStr(strdup(crlDefault.buf));
 }
 
 void CSecurityTLS::shutdown()