From 6906efa354d5cbfea1668c5828163eb06fe88df6 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 14 Dec 2018 09:52:25 +0100 Subject: [PATCH] Fixed return value for already accepted certificate. --- libfreerdp/crypto/tls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index 1c7b66f89..7d444578d 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -1333,7 +1333,10 @@ int tls_verify_certificate(rdpTls* tls, CryptoCert cert, const char* hostname, /* Check, if we already accepted this key. */ if (is_accepted(tls, pemCert, length)) + { + verification_status = TRUE; goto end; + } if (tls->isGatewayTransport || is_redirected(tls)) flags |= VERIFY_CERT_FLAG_LEGACY;