]> source.dussan.org Git - tigervnc.git/commitdiff
Do not duplicate default string twice
authorJan Grulich <jgrulich@redhat.com>
Wed, 26 Sep 2018 10:50:33 +0000 (12:50 +0200)
committerJan Grulich <jgrulich@redhat.com>
Wed, 26 Sep 2018 13:57:37 +0000 (15:57 +0200)
common/rfb/CSecurityTLS.cxx

index e1a31f78313ab98c135c6073af009a61d691bba2..d268202b3db9e95c778045024ee2ce806e0f999d 100644 (file)
@@ -95,9 +95,9 @@ void CSecurityTLS::setDefaults()
   delete [] homeDir;
 
  if (!fileexists(caDefault.buf))
-   X509CA.setDefaultStr(strdup(caDefault.buf));
+   X509CA.setDefaultStr(caDefault.buf);
  if (!fileexists(crlDefault.buf))
-   X509CRL.setDefaultStr(strdup(crlDefault.buf));
+   X509CRL.setDefaultStr(crlDefault.buf);
 }
 
 void CSecurityTLS::shutdown(bool needbye)