aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CSecurityTLS.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-10-14 09:09:01 +0200
committerPierre Ossman <ossman@cendio.se>2021-10-14 09:09:01 +0200
commit32051b8e53ca5f4c5c9e11a3afc45110c3c396e9 (patch)
tree22d4d3c03e0a3fbcb3da5f43373f67eb690b8f80 /common/rfb/CSecurityTLS.cxx
parent37f3a8b47f0b17ea1c1cacaf5c048a0bada618d3 (diff)
parentd32ff1c9600f7f19f5fe391ed6c71cc117ab1521 (diff)
downloadtigervnc-32051b8e53ca5f4c5c9e11a3afc45110c3c396e9.tar.gz
tigervnc-32051b8e53ca5f4c5c9e11a3afc45110c3c396e9.zip
Merge branch 'master' of https://github.com/twhitehead/tigervnc
Diffstat (limited to 'common/rfb/CSecurityTLS.cxx')
-rw-r--r--common/rfb/CSecurityTLS.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx
index c2d0b0b9..d0af1410 100644
--- a/common/rfb/CSecurityTLS.cxx
+++ b/common/rfb/CSecurityTLS.cxx
@@ -284,7 +284,7 @@ void CSecurityTLS::setParam()
if (gnutls_certificate_allocate_credentials(&cert_cred) != GNUTLS_E_SUCCESS)
throw AuthFailureException("gnutls_certificate_allocate_credentials failed");
- if (gnutls_certificate_set_x509_system_trust(cert_cred) != GNUTLS_E_SUCCESS)
+ if (gnutls_certificate_set_x509_system_trust(cert_cred) < 1)
vlog.error("Could not load system certificate trust store");
if (*cafile && gnutls_certificate_set_x509_trust_file(cert_cred,cafile,GNUTLS_X509_FMT_PEM) < 0)