From 8105be9f317767f2c98d874bcece333e47d2e345 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 26 Sep 2018 12:50:33 +0200 Subject: [PATCH] Do not duplicate default string twice --- common/rfb/CSecurityTLS.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index e1a31f78..d268202b 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -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) -- 2.39.5