Don't use CertificateName setting for RDG connections.

This commit is contained in:
Pavel Pautov 2018-04-11 20:02:44 -07:00
parent d5f9da2b3c
commit 3a8d721bb9
1 changed files with 1 additions and 1 deletions

View File

@ -1246,7 +1246,7 @@ int tls_verify_certificate(rdpTls* tls, CryptoCert cert, char* hostname,
return 1; /* success! */
/* if user explicitly specified a certificate name, use it instead of the hostname */
if (tls->settings->CertificateName)
if (!tls->isGatewayTransport && tls->settings->CertificateName)
hostname = tls->settings->CertificateName;
/* attempt verification using OpenSSL and the ~/.freerdp/certs certificate store */