Fix StreamPeerSSL connect_to_stream w/ custom cert

Follow up on #29871.
Was checking the wrong parameter, causing the code to ignore provided
stream-specific SSL certificate.
This commit is contained in:
Fabio Alessandrelli 2019-08-22 15:04:00 +02:00
parent 4ab4d4a59b
commit 99f657d89f

View File

@ -96,7 +96,7 @@ Error SSLContextMbedTLS::init_server(int p_transport, int p_authmode, Ref<Crypto
Error SSLContextMbedTLS::init_client(int p_transport, int p_authmode, Ref<X509CertificateMbedTLS> p_valid_cas) {
X509CertificateMbedTLS *cas = NULL;
if (certs.is_valid()) {
if (p_valid_cas.is_valid()) {
// Locking CA certificates
certs = p_valid_cas;
certs->lock();